From c483150ed76f4b661e61562ed660bfbdecdc129e Mon Sep 17 00:00:00 2001 From: Mohamed Elmoslemany <117270519+mo-c4t@users.noreply.github.com> Date: Thu, 26 Sep 2024 09:44:32 +0200 Subject: [PATCH] deploy stage when pushing to suite-c4t (#248) --- .github/workflows/docker.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8a6c9284..5ce10d6c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -110,6 +110,13 @@ jobs: docker push ${{ steps.setDefaults.outputs.docker_image }} gcloud run deploy camino-suite-${{ steps.setDefaults.outputs.build_env }} --image ${{ steps.setDefaults.outputs.docker_image }} --region=europe-west1 + - name: push and deploy docker stage suite + if: ${{(github.event_name == 'push') && (github.ref == 'refs/heads/suite-c4t') }} + run: | + gcloud auth configure-docker --quiet europe-west3-docker.pkg.dev + docker push ${{ steps.setDefaults.outputs.docker_image }} + gcloud run deploy camino-suite-${{ steps.setDefaults.outputs.build_env }} --image ${{ steps.setDefaults.outputs.docker_image }} --region=europe-west1 + - name: push and deploy docker stage suite if: ${{(github.event_name == 'push') && contains(github.ref, 'refs/tags/') }} run: |