-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (39 loc) · 1.15 KB
/
lower-agency-scorecards.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on:
push:
tags:
- 'dev-agency-scorecards'
paths:
- 'agency-scorecards/**'
# Set the default shell for the build process.
# https://docs.github.com/en/actions/using-jobs/setting-default-values-for-jobs
defaults:
run:
shell: 'bash'
# Set the build pipeline permissions.
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions:
contents: 'read' # used to checkout code
id-token: 'write'
# Environment Settings (top level)
# https://docs.github.com/en/actions/learn-github-actions/variables
env:
AWS_REGION: 'us-east-1'
AWS_DEFAULT_REGION: 'us-east-1'
CONTENT_BUCKET: 'sba-gov-yumi'
jobs:
agency-scorecards:
runs-on: 'ubuntu-20.04'
environment: 'lower'
steps:
- name: 'Checkout'
uses: 'actions/checkout@v3'
with:
fetch-depth: 1
- name: 'OIDC to AWS'
uses: 'aws-actions/configure-aws-credentials@v2'
with:
role-to-assume: ${{ secrets.OIDC_ROLE_ARN }}
aws-region: ${{ env.AWS_REGION }}
- name: 'Sync'
run: |
aws s3 sync --delete ./agency-scorecards s3://${CONTENT_BUCKET}/agency-scorecards