From 6a1e3976d546a8fc8138e8fd18735eb4578d71f7 Mon Sep 17 00:00:00 2001 From: spbolton Date: Mon, 4 Mar 2024 19:03:06 -0500 Subject: [PATCH] add deployment template (#5) --- .github/workflows/trunk-deployment.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/trunk-deployment.yml 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