From 08352e63b7fe4d37b54793596f9045a4aff45a9f Mon Sep 17 00:00:00 2001 From: Sean Rankine Date: Wed, 16 Mar 2022 15:36:33 +0000 Subject: [PATCH] Update CI workflow to trigger deploy to integration This adds an additional job to the CI workflow to run a reusable workflow that writes the newly built image tag to helm charts file. This triggers ArgoCD to deploy the integration. --- .github/workflows/ci.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0600f8296..9dde52e5b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: Build and publish to ECR +name: CI on: workflow_dispatch: @@ -12,8 +12,15 @@ on: - ".git**" jobs: - build-publish-image-to-ecr: + build-and-publish-image: + name: Build and publish image uses: alphagov/govuk-infrastructure/.github/workflows/ci-ecr.yaml@main secrets: AWS_GOVUK_ECR_ACCESS_KEY_ID: ${{ secrets.AWS_GOVUK_ECR_ACCESS_KEY_ID }} AWS_GOVUK_ECR_SECRET_ACCESS_KEY: ${{ secrets.AWS_GOVUK_ECR_SECRET_ACCESS_KEY }} + trigger-deploy-to-integration: + name: Trigger deploy to integration + needs: build-and-publish-image + uses: alphagov/govuk-infrastructure/.github/workflows/deploy.yaml@main + secrets: + GOVUK_CI_GITHUB_API_TOKEN: ${{ secrets.GOVUK_CI_GITHUB_API_TOKEN }}