From 998809c2a5b7ccdb5b36d58646f5ea7ade7a321a Mon Sep 17 00:00:00 2001 From: mkoszut Date: Fri, 24 Sep 2021 18:51:58 +0200 Subject: [PATCH] Update docs-deployment.yaml --- .github/workflows/docs-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-deployment.yaml b/.github/workflows/docs-deployment.yaml index dcfdfd4fa..f7755f4a3 100644 --- a/.github/workflows/docs-deployment.yaml +++ b/.github/workflows/docs-deployment.yaml @@ -51,7 +51,7 @@ jobs: initial_status: in_progress - name: Deploy on docs.europe-west1.gcp.storefrontcloud.io/magento2 run: | - if curl -s -H 'X-User-Id: ${{ secrets.DOCS_CLOUD_USERNAME }}' -H 'X-Api-Key: ${{ secrets.DOCS_CLOUD_PASSWORD }}' -H 'Content-Type: application/json' -X POST -d '{"code":"docs","region":"europe-west1.gcp","additionalApps":{"apps":[{"name":"docs-v2-magento2","tag":"${{ steps.get_version.outputs.VERSION }}","image":"registry.storefrontcloud.io/docs-storefrontcloud-io/v2-magento2","path":"/magento2","port":"80"}]}}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then + if curl -s -H 'X-User-Id: ${{ secrets.DOCS_CLOUD_USERNAME }}' -H 'X-Api-Key: ${{ secrets.DOCS_CLOUD_PASSWORD }}' -H 'Content-Type: application/json' -X POST -d '{"code":"docs","region":"europe-west1.gcp","additionalApps":{"apps":[{"name":"docs-v2-magento2","tag":"${{ steps.get_version.outputs.VERSION }}","image":"registry.storefrontcloud.io/docs-storefrontcloud-io/v2-magento2","path":"/magento","port":"80"}]}}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then echo "Instance updated" else echo "Something went wrong during the update process..."