Skip to content

Commit

Permalink
Add sandbox and production deploy jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Mar 3, 2024
1 parent 0797e7b commit 0e30a9a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,33 @@ jobs:
image-digest: ${{ needs.docker.outputs.image-digest }}
environment: test
precompressed-assets: true

deploy-sandbox:
name: Deploy
needs: [lint, test, docs, docker, deploy-test]
uses: ./.github/workflows/deploy.yml
if: ${{ github.ref == 'refs/heads/main' }}
concurrency:
group: deploy-sandbox
permissions:
id-token: write
contents: read
with:
image-digest: ${{ needs.docker.outputs.image-digest }}
environment: sandbox
precompressed-assets: true

deploy-production:
name: Deploy
needs: [lint, test, docs, docker, deploy-test, deploy-sandbox]
uses: ./.github/workflows/deploy.yml
if: ${{ github.ref == 'refs/heads/main' }}
concurrency:
group: deploy-production
permissions:
id-token: write
contents: read
with:
image-digest: ${{ needs.docker.outputs.image-digest }}
environment: production
precompressed-assets: true

0 comments on commit 0e30a9a

Please sign in to comment.