@@ -72,11 +72,11 @@ jobs:
7272 echo "Something went wrong during the update process..."
7373 exit 1
7474 fi
75- - name : Deploy on demo-magento2-canary .europe-west1.gcp.storefrontcloud.io/
75+ - name : Deploy on demo-magento2-dev .europe-west1.gcp.storefrontcloud.io/
7676 if : startsWith(github.ref, 'refs/heads/develop')
7777 run : |
7878 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 '{
79- "code":"demo-magento2-canary ",
79+ "code":"demo-magento2-dev ",
8080 "region":"europe-west1.gcp",
8181 "frontContainerVersion":"${{ github.sha }}"
8282 }' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
@@ -85,11 +85,11 @@ jobs:
8585 echo "Something went wrong during the update process..."
8686 exit 1
8787 fi
88- - name : Deploy on demo-magento2-dev .europe-west1.gcp.storefrontcloud.io
88+ - name : Deploy on demo-magento2-canary .europe-west1.gcp.storefrontcloud.io
8989 if : startsWith(github.ref, 'refs/heads/release')
9090 run : |
9191 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 '{
92- "code":"demo-magento2-dev ",
92+ "code":"demo-magento2-canary ",
9393 "region":"europe-west1.gcp",
9494 "frontContainerVersion":"${{ github.sha }}"
9595 }' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
9898 echo "Something went wrong during the update process..."
9999 exit 1
100100 fi
101+ - name : Deploy on demo-magento2-enterprise.europe-west1.gcp.storefrontcloud.io
102+ if : startsWith(github.ref, 'refs/heads/enterprise')
103+ run : |
104+ 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 '{
105+ "code":"demo-magento2-enterprise",
106+ "region":"europe-west1.gcp",
107+ "frontContainerVersion":"${{ github.sha }}"
108+ }' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
109+ echo "Instance updated"
110+ else
111+ echo "Something went wrong during the update process..."
112+ exit 1
113+ fi
114+
101115 - name : Update deployment status (success)
102116 if : success()
103117 uses : chrnorm/deployment-status@releases/v1
0 commit comments