Skip to content

Commit

Permalink
Merge pull request #8 from nationalarchives/migration
Browse files Browse the repository at this point in the history
Added automation for apply
  • Loading branch information
Vaishnavir9901 authored Jan 17, 2025
2 parents 1be37f7 + 91182f7 commit b5994b6
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/web-frontend-apply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: Web Frontend Apply

permissions:
id-token: write
contents: write

on:
workflow_dispatch:
inputs:
deploy-environment:
type: choice
description: Environment
required: true
default: "dev"
options:
- dev
- staging
- live

jobs:
apply-frontend-dev:
if: ${{ inputs.deploy-environment == 'dev' }}
uses: nationalarchives/ds-github-actions/.github/workflows/apply-web-frontend.yml@vaishnavi/web-actions
with:
deploy-environment: "${{ inputs.deploy-environment }}"
github-environment: "dev-deploy"
account_id: "846769538626"
role-to-assume: "arn:aws:iam::846769538626:role/GithubOIDCProviderIAMRolePermissions-Role-I80RXHT6O1PL"
branch: "${{ github.event.inputs.branch }}"
apply-frontend-staging:
if: ${{ inputs.deploy-environment == 'staging' }}
uses: nationalarchives/ds-github-actions/.github/workflows/apply-web-frontend.yml@vaishnavi/web-actions
with:
deploy-environment: "${{ inputs.deploy-environment }}"
github-environment: "staging-deploy"
account_id: "337670467269"
role-to-assume: "arn:aws:iam::337670467269:role/GitHubActionRole"
branch: "${{ github.event.inputs.branch }}"
apply-frontend-live:
if: ${{ inputs.deploy-environment == 'live' }}
uses: nationalarchives/ds-github-actions/.github/workflows/apply-web-frontend.yml@vaishnavi/web-actions
with:
deploy-environment: "${{ inputs.deploy-environment }}"
github-environment: "live-deploy"
account_id: "968803923593"
role-to-assume: "arn:aws:iam::968803923593:role/github-oidc-Role-1QSZDDE2NZQV0"
branch: "${{ github.event.inputs.branch }}"
...

0 comments on commit b5994b6

Please # to comment.