-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (51 loc) · 1.29 KB
/
oedi-data-lake-dev-deploy.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
46
47
48
49
50
51
52
name: OEDI Data Lake (dev) Deploy
on:
push:
branches:
- integration
paths:
- ./oedi/config.yaml
pull_request:
branches:
- integration
paths:
- ./oedi/config.yaml
jobs:
release:
name: Deploy OEDI data lake
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
strategy:
matrix:
python-version: [3.9]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Node 20
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install CDK & Python dependencies
run: |
npm install -g aws-cdk
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Assume AWS IAM role
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION_NAME }}
role-to-assume: ${{ secrets.AWS_OEDI_DEV_IAM_ROLE }}
- name: Deploy OEDI data lake
working-directory: ./oedi/AWS/
run: |
oedi config sync
cdk list
cdk deploy --require-approval=never
oedi aws run-crawlers