From 4ff3668a3976014d191c5ed6792f6bdbb0ed348c Mon Sep 17 00:00:00 2001 From: Omar Siam Date: Wed, 30 Oct 2024 12:21:46 +0100 Subject: [PATCH] Do not deploy when the version tag is pushed --- .github/workflows/starter.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/starter.yaml b/.github/workflows/starter.yaml index 60e1f00fd..088022d96 100644 --- a/.github/workflows/starter.yaml +++ b/.github/workflows/starter.yaml @@ -174,7 +174,7 @@ jobs: needs: [setup_workflow_env, test_openatlas] uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/deploy.yml@main secrets: inherit - if: ${{ github.repository_owner == 'acdh-oeaw' }} + if: contains(github.ref_name, 'tags') != true && github.repository_owner == 'acdh-oeaw' with: environment: ${{ needs.setup_workflow_env.outputs.environment}} DOCKER_TAG: ${{ needs.setup_workflow_env.outputs.registry_root }}${{ needs.setup_workflow_env.outputs.image_name }} @@ -185,7 +185,7 @@ jobs: needs: [setup_workflow_env, test_openatlas] uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/deploy.yml@main secrets: inherit - if: ${{ github.repository_owner == 'acdh-oeaw' }} + if: contains(github.ref_name, 'tags') != true && github.repository_owner == 'acdh-oeaw' with: environment: review/with_db_demo_deploy do_deploy: ${{ needs.setup_workflow_env.outputs.environment == 'review/develop' }} @@ -197,7 +197,7 @@ jobs: needs: [setup_workflow_env, test_openatlas] uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/deploy.yml@main secrets: inherit - if: ${{ github.repository_owner == 'acdh-oeaw' }} + if: contains(github.ref_name, 'tags') != true && github.repository_owner == 'acdh-oeaw' with: environment: openatlas-demo do_deploy: ${{ needs.setup_workflow_env.outputs.environment == 'review/develop' }}