Skip to content

Commit

Permalink
Update deployment script to use GitHub identity tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
m-houston committed May 21, 2024
1 parent db1a393 commit e0dc568
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/cicd-3-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
tag:
description: "This is the tag that is oging to be deployed"
description: "This is the tag that is going to be deployed"
required: true
default: "latest"

Expand Down Expand Up @@ -55,8 +55,20 @@ jobs:
needs: [metadata]
timeout-minutes: 10
steps:
- name: "Checkout code"
- name: Checkout
uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ env.AWS_DEPLOY_ROLE }}
role-session-name: deploy
aws-region: ${{ env.AWS_REGION }}

- name: List S3 buckets
run: |
echo "Deploying to ${AWS_REGION} using ${AWS_DEPLOY_ROLE}"
echo "TODO Run terraform here"
# TODO: More jobs or/and steps here
# success:
# name: "Success notification"
Expand Down

0 comments on commit e0dc568

Please sign in to comment.