Deploy to Staging after Docker Build #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to Staging after Docker Build | |
| on: | |
| workflow_run: | |
| workflows: [Build and Push Docker Image] | |
| types: [completed] | |
| branches: [main] | |
| concurrency: | |
| group: deploy-staging-after-build | |
| cancel-in-progress: false | |
| # Keep staging availability independent from image publication and releases. | |
| # A failed deployment remains visible here without changing the conclusion of | |
| # the Docker build that produced the deployable images. | |
| permissions: | |
| contents: read | |
| packages: read | |
| jobs: | |
| deploy: | |
| name: Deploy to Staging | |
| if: github.event.workflow_run.conclusion == 'success' | |
| uses: ./.github/workflows/deploy-staging.yml | |
| with: | |
| image-tag: sha-${{ github.event.workflow_run.head_sha }} | |
| deploy-app: true | |
| secrets: inherit |