From 17ba7fa5578a128d0e2658f6d38870ad80bf6f82 Mon Sep 17 00:00:00 2001 From: Sean Rankine Date: Wed, 24 Jul 2024 13:25:49 +0100 Subject: [PATCH] Add trigger-deploy in Argo step --- .github/workflows/deploy.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6741f4b..4f92c3f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,18 +6,18 @@ on: workflow_dispatch: inputs: gitRef: - description: "Commit, tag or branch name to deploy" + description: 'Commit, tag or branch name to deploy' required: true type: string environment: - description: "Environment to deploy to" + description: 'Environment to deploy to' required: true type: choice options: - - integration - - staging - - production - default: "integration" + - integration + - staging + - production + default: 'integration' release: types: [released] @@ -32,3 +32,14 @@ jobs: id-token: write contents: read packages: write + trigger-deploy: + name: Trigger deploy to ${{ inputs.environment || 'integration' }} + needs: build-and-publish-image + uses: alphagov/govuk-infrastructure/.github/workflows/deploy.yml@main + with: + imageTag: ${{ needs.build-and-publish-image.outputs.imageTag }} + environment: ${{ inputs.environment || 'integration' }} + secrets: + WEBHOOK_TOKEN: ${{ secrets.GOVUK_ARGO_EVENTS_WEBHOOK_TOKEN }} + WEBHOOK_URL: ${{ secrets.GOVUK_ARGO_EVENTS_WEBHOOK_URL }} + GH_TOKEN: ${{ secrets.GOVUK_CI_GITHUB_API_TOKEN }}