We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02539cc commit 9195eb3Copy full SHA for 9195eb3
.github/workflows/publish-migrations.yml
@@ -9,6 +9,9 @@ jobs:
9
build:
10
runs-on: [self-hosted, linux]
11
timeout-minutes: 15
12
+ permissions:
13
+ id-token: write
14
+ contents: read
15
16
steps:
17
- name: Checkout Repo
@@ -30,13 +33,13 @@ jobs:
30
33
env:
31
34
AWS_S3_BUCKET: ${{ secrets.PG_INIT_SCRIPT_S3_BUCKET_STAGING }}
32
35
- - name: configure aws credentials - staging
36
+ - name: configure aws credentials - prod
37
uses: aws-actions/configure-aws-credentials@v1
38
with:
39
role-to-assume: ${{ secrets.PROD_AWS_ROLE }}
40
aws-region: "ap-southeast-1"
41
- - name: Deploy to S3 staging
42
+ - name: Deploy to S3 prod
43
shell: bash
44
run: aws s3 sync migrations/db s3://$AWS_S3_BUCKET/migrations/db --delete
45
0 commit comments