Skip to content

Commit

Permalink
Attempt at making use of OIDC for AWS deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
danniehansen committed Apr 16, 2024
1 parent 6c133d3 commit ba9288d
Show file tree
Hide file tree
Showing 4 changed files with 308 additions and 247 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@ on:
branches: ['develop']
types:
- completed
permissions:
id-token: write
contents: read
name: Release - develop
jobs:
build-and-deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment: Develop
steps:
- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::265358888522:role/github-deployment
role-session-name: github-main-deployment
aws-region: eu-west-1
- uses: actions/checkout@v4
with:
ref: 'develop'
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@ on:
branches: ['master']
types:
- completed
permissions:
id-token: write
contents: read
name: Release - production
jobs:
build-and-deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment: Production
steps:
- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::265358888522:role/github-deployment
role-session-name: github-main-deployment
aws-region: eu-west-1
- uses: actions/checkout@v4
with:
ref: 'master'
Expand Down
70 changes: 35 additions & 35 deletions infrastructure/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ba9288d

Please sign in to comment.