-
Notifications
You must be signed in to change notification settings - Fork 188
49 lines (42 loc) · 1.38 KB
/
manual__publish-example__ghc-2023.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
42
43
44
45
46
47
48
49
name: Publish Example - Grace Hopper Conference 2023 (AWS)
on:
push:
branches:
- master
paths:
- "installers/examples/grace-hopper-conference-2023/**"
workflow_dispatch: {}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
- name: Maven Build
working-directory: ./installers/examples/grace-hopper-conference-2023
run: mvn clean install
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: CDK Synth
working-directory: ./installers/examples/grace-hopper-conference-2023
run: |
mkdir dist
npm install -g aws-cdk
cdk synth > dist/cfn.yaml
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.GHC_PUBLISH_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.GHC_PUBLISH_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Copy CFN Template to S3
working-directory: ./installers/examples/grace-hopper-conference-2023
run: |
aws s3 cp dist/cfn.yaml s3://legend.ghc/template.yaml --acl public-read