Skip to content

Commit 78a3afe

Browse files
author
byakku
authored
Merge pull request #5934 from vuestorefront/update-workflow-for-new-demo
CI/CD Fixes for demo/test migrations
2 parents ff7217b + c049102 commit 78a3afe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-storefrontcloud.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Build and publish docker image
3232
uses: elgohr/Publish-Docker-Github-Action@master
3333
with:
34-
name: demo-storefrontcloud-io/vue-storefront:${{ github.sha }}
34+
name: demo-europe-west1-gcp-storefrontcloud-io/vue-storefront:${{ github.sha }}
3535
registry: registry.storefrontcloud.io
3636
username: ${{ secrets.CLOUD_USERNAME }}
3737
password: ${{ secrets.CLOUD_PASSWORD }}
@@ -52,7 +52,7 @@ jobs:
5252
- name: Deploy on demo.storefrontcloud.io
5353
if: github.ref == 'refs/heads/master'
5454
run: |
55-
if curl -s -u ${{ secrets.CLOUD_USERNAME }}:${{ secrets.CLOUD_PASSWORD }} -H 'Content-Type: application/json' -X POST -d '{"code":"demo","frontContainerVersion":"${{ github.sha }}"}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
55+
if curl -s -u ${{ secrets.CLOUD_USERNAME }}:${{ secrets.CLOUD_PASSWORD }} -H 'Content-Type: application/json' -X POST -d '{"code":"demo","region":"europe-west1.gcp","frontContainerVersion":"${{ github.sha }}"}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
5656
echo "Instance updated"
5757
else
5858
echo "Something went wrong during the update process..."
@@ -70,7 +70,7 @@ jobs:
7070
- name: Deploy on test.storefrontcloud.io
7171
if: github.ref == 'refs/heads/develop'
7272
run: |
73-
if curl -s -u ${{ secrets.CLOUD_USERNAME }}:${{ secrets.CLOUD_PASSWORD }} -H 'Content-Type: application/json' -X POST -d '{"code":"test","frontContainerVersion":"${{ github.sha }}"}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
73+
if curl -s -u ${{ secrets.CLOUD_USERNAME }}:${{ secrets.CLOUD_PASSWORD }} -H 'Content-Type: application/json' -X POST -d '{"code":"test","region":"europe-west1.gcp","frontContainerVersion":"${{ github.sha }}"}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
7474
echo "Instance updated"
7575
else
7676
echo "Something went wrong during the update process..."

0 commit comments

Comments
 (0)