Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 24839d1

Browse files
author
Kamil Stępień
committed
Fix branch naming in workflow
1 parent 61b28ed commit 24839d1

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

‎.github/workflows/deploy.yml‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ name: Deploy to Demo and Test
22
on:
33
push:
44
branches:
5-
- test
6-
- demo
7-
pull_request:
8-
branches:
9-
- test
10-
- demo
5+
- master
6+
- develop
117

128
jobs:
139
build:
@@ -22,7 +18,7 @@ jobs:
2218

2319
# Build for demo
2420
- name: Build and publish demo docker image
25-
if: github.ref == 'refs/heads/demo'
21+
if: github.ref == 'refs/heads/master'
2622
uses: elgohr/Publish-Docker-Github-Action@master
2723
with:
2824
name: demo-storefrontcloud-io/vue-storefront-api:${{ github.sha }}
@@ -34,7 +30,7 @@ jobs:
3430

3531
# Build for test
3632
- name: Build and publish test docker image
37-
if: github.ref == 'refs/heads/test'
33+
if: github.ref == 'refs/heads/develop'
3834
uses: elgohr/Publish-Docker-Github-Action@master
3935
with:
4036
name: test-storefrontcloud-io/vue-storefront-api:${{ github.sha }}
@@ -50,7 +46,7 @@ jobs:
5046
steps:
5147
- uses: chrnorm/deployment-action@releases/v1
5248
name: Create GitHub deployment for ${GITHUB_REF##*/}
53-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/test'
49+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'
5450
id: deployment
5551
with:
5652
token: "${{ github.token }}"
@@ -60,7 +56,7 @@ jobs:
6056

6157
# Deploy on test/demo depending on the branch that triggered the workflow
6258
- name: Deploy on ${GITHUB_REF##*/}.europe-west1.gcp.storefrontcloud.io
63-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/test'
59+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'
6460
run: |
6561
if curl -s -H 'X-User-Id: ${{ secrets.CLOUD_USERNAME }}' -H 'X-Api-Key: ${{ secrets.CLOUD_PASSWORD }}' -H 'Content-Type: application/json' -X POST -d '
6662
{
@@ -75,7 +71,7 @@ jobs:
7571
fi
7672
7773
- name: Update deployment status (success)
78-
if: success() && github.ref == 'refs/heads/demo' || success() && github.ref == 'refs/heads/test'
74+
if: success() && github.ref == 'refs/heads/master' || success() && github.ref == 'refs/heads/develop'
7975
uses: chrnorm/deployment-status@releases/v1
8076
with:
8177
token: "${{ github.token }}"
@@ -84,7 +80,7 @@ jobs:
8480
description: Congratulations! The deploy is done.
8581
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
8682
- name: Update deployment status (failure)
87-
if: failure() && github.ref == 'refs/heads/demo' || failure() && github.ref == 'refs/heads/test'
83+
if: failure() && github.ref == 'refs/heads/master' || failure() && github.ref == 'refs/heads/develop'
8884
uses: chrnorm/deployment-status@releases/v1
8985
with:
9086
token: "${{ github.token }}"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /