diff --git a/.github/workflows/trunk-deployment.yml b/.github/workflows/trunk-deployment.yml new file mode 100644 index 000000000000..f97e47a018ca --- /dev/null +++ b/.github/workflows/trunk-deployment.yml @@ -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 }} \ No newline at end of file