Trunk Deployment - Maven CICD Pipeline #3
This file contains 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: 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 }} |