Skip to content

Commit

Permalink
add deployment template (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
spbolton authored Mar 5, 2024
1 parent 9587235 commit 6a1e397
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/trunk-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Trunk Deployment
run-name: Trunk Deployment - ${{ github.event.workflow_run.name }}
concurrency: trunk-deployment # move to deployment job if we need to queue up and not skip backlogged deployments
on:
workflow_run:
workflows: ['Maven CICD Pipeline']
types: [completed]
permissions:
contents: read
actions: read # allow access to other job artifacts with GITHUB_TOKEN
jobs:
deployment:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
environment: trunk
steps:
- name: Download Docker Build Context
uses: actions/download-artifact@v4
with:
name: docker-build-context
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}

0 comments on commit 6a1e397

Please sign in to comment.