Skip to content

Commit 7e63b81

Browse files
author
byakku
committed
Update workflow with new envs, change auth method
1 parent 78a3afe commit 7e63b81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-storefrontcloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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","region":"europe-west1.gcp","frontContainerVersion":"${{ github.sha }}"}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
55+
if curl -s -H "X-User-Id: ${{ secrets.DEMO_CLOUD_USERNAME }}" -H "X-Api-Key: ${{ secrets.DEMO_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","region":"europe-west1.gcp","frontContainerVersion":"${{ github.sha }}"}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
73+
if curl -s "X-User-Id: ${{ secrets.DEMO_CLOUD_USERNAME }}" -H "X-Api-Key: ${{ secrets.DEMO_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)