Skip to content

Trunk Deployment - Maven CICD Pipeline #5

Trunk Deployment - Maven CICD Pipeline

Trunk Deployment - Maven CICD Pipeline #5

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 }}