Skip to content

Commit

Permalink
Add deployment URL for all static URL deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMillar-MOJ committed Oct 18, 2024
1 parent e938748 commit 87017d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
ECR_REPOSITORY:
required: true
type: string
DEPLOYMENT_URL:
required: true
type: string
secrets:
ECR_REGISTRY:
required: true
Expand All @@ -29,7 +32,9 @@ on:
jobs:
deploy:
name: Deploy
environment: ${{ inputs.environment }}
environment:
name: ${{ inputs.environment }}
url: ${{ vars.DEPLOYMENT_URL }}
runs-on: ubuntu-latest
permissions:
id-token: write # This is required for requesting the JWT
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
environment: uat
ECR_REGION: ${{vars.ECR_REGION}}
ECR_REPOSITORY: ${{vars.ECR_REPOSITORY}}
DEPLOYMENT_URL: ${{vars.DEPLOYMENT_URL}}
secrets:
ECR_REGISTRY: ${{ secrets.ECR_REGISTRY }}
ECR_ROLE_TO_ASSUME: ${{ secrets.ECR_ROLE_TO_ASSUME }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/main-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
environment: production
ECR_REGION: ${{vars.ECR_REGION}}
ECR_REPOSITORY: ${{vars.ECR_REPOSITORY}}
DEPLOYMENT_URL: ${{vars.DEPLOYMENT_URL}}
secrets:
ECR_REGISTRY: ${{ secrets.ECR_REGISTRY }}
ECR_ROLE_TO_ASSUME: ${{ secrets.ECR_ROLE_TO_ASSUME }}
Expand Down

0 comments on commit 87017d2

Please sign in to comment.