Skip to content

Deploy to Staging after Docker Build #7

Deploy to Staging after Docker Build

Deploy to Staging after Docker Build #7

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