Skip to content

Commit

Permalink
Add trigger-deploy in Argo step
Browse files Browse the repository at this point in the history
  • Loading branch information
theseanything committed Jul 24, 2024
1 parent 531816d commit 17ba7fa
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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 }}

0 comments on commit 17ba7fa

Please sign in to comment.