Skip to content

Commit

Permalink
Merge pull request #2589 from alphagov/bulk/fix-run-name-in-deploy-wo…
Browse files Browse the repository at this point in the history
…rkflow
  • Loading branch information
theseanything authored Nov 1, 2022
2 parents 68826df + e17bbde commit 7fdb746
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Deploy

run-name: Deploy ${{ inputs.gitRef }} to ${{ inputs.environment }}
run-name: Deploy ${{ inputs.gitRef || github.ref_name }} to ${{ inputs.environment || 'integration' }}

on:
workflow_dispatch:
Expand Down Expand Up @@ -30,17 +30,17 @@ jobs:
name: Build and publish image
uses: alphagov/govuk-infrastructure/.github/workflows/build-and-push-image.yaml@main
with:
gitRef: ${{ github.event.inputs.gitRef || github.ref }}
gitRef: ${{ inputs.gitRef || github.ref }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_GOVUK_ECR_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_GOVUK_ECR_SECRET_ACCESS_KEY }}
trigger-deploy:
name: Trigger deploy to ${{ github.event.inputs.environment }}
name: Trigger deploy to ${{ inputs.environment || 'integration' }}
needs: build-and-publish-image
uses: alphagov/govuk-infrastructure/.github/workflows/deploy.yaml@main
with:
imageTag: ${{ needs.build-and-publish-image.outputs.imageTag }}
environment: ${{ github.event.inputs.environment }}
environment: ${{ inputs.environment || 'integration' }}
secrets:
WEBHOOK_TOKEN: ${{ secrets.GOVUK_ARGO_EVENTS_WEBHOOK_TOKEN }}
WEBHOOK_URL: ${{ secrets.GOVUK_ARGO_EVENTS_WEBHOOK_URL }}
Expand Down

0 comments on commit 7fdb746

Please sign in to comment.