-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (33 loc) · 1.06 KB
/
01-bootstrap.yml
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
# This is a one-off workflow to set up everything we need to deploy Docker images
# with CDK. This workflow deploys everything that is not specific to a certain
# environment (staging, prod, ...).
name: 01 - Manually Bootstrap the CDK Environment
on:
workflow_dispatch
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
jobs:
bootstrap:
runs-on: ubuntu-20.04
name: Bootstrap CDK
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: NPM install
working-directory: cdk
run: npm install
- name: Deploy CDK bootstrap stack
working-directory: cdk
run: npm run bootstrap
- name: Deploy Docker registry
working-directory: cdk
run: npm run repository:deploy