diff --git a/.github/workflows/fileserver-container.yml b/.github/workflows/fileserver-container.yml index 1322b572..d0109447 100644 --- a/.github/workflows/fileserver-container.yml +++ b/.github/workflows/fileserver-container.yml @@ -45,6 +45,7 @@ jobs: temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} deploy-stage: + if: github.ref_name == 'main' name: Deploy to staging environment needs: build-multi-architecture uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.1.0 diff --git a/.github/workflows/flowforge-container.yml b/.github/workflows/flowforge-container.yml index e82b7f40..b8dc7e26 100644 --- a/.github/workflows/flowforge-container.yml +++ b/.github/workflows/flowforge-container.yml @@ -46,6 +46,7 @@ jobs: temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} deploy-stage: + if: github.ref_name == 'main' name: Deploy to staging environment needs: build-multi-architecture uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.1.0 diff --git a/.github/workflows/nodered-container.yml b/.github/workflows/nodered-container.yml index 6d7ee8ad..f56e31c1 100644 --- a/.github/workflows/nodered-container.yml +++ b/.github/workflows/nodered-container.yml @@ -47,6 +47,7 @@ jobs: temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} upload-302-stage: name: Upload image to staging ECR + if: github.ref_name == 'main' needs: build-302-multi-architecture uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.2.0 with: @@ -107,6 +108,7 @@ jobs: temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} upload-223-stage: name: Upload image to staging ECR + if: github.ref_name == 'main' needs: build-223-multi-architecture uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.2.0 with: @@ -167,6 +169,7 @@ jobs: temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} upload-310-stage: name: Upload image to staging ECR + if: github.ref_name == 'main' needs: build-310-multi-architecture uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.2.0 with: