-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.39 KB
/
pdk.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
name: PDK
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@13d241b293754004c80624b5567555c4a39ffbe3
with:
aws-access-key-id: ${{ secrets.ECR_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ECR_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- name: Login with docker to ECR
id: login-ecr
run: aws ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin 070318080841.dkr.ecr.eu-west-1.amazonaws.com
- name: Pull docker image
run: docker pull 070318080841.dkr.ecr.eu-west-1.amazonaws.com/pdk:latest
- name: Prepare PDK
run: docker run --rm -i -v $(pwd):/src 070318080841.dkr.ecr.eu-west-1.amazonaws.com/pdk:latest pdk -T
- name: Run PDK
run: docker run --rm -i -v $(pwd):/src 070318080841.dkr.ecr.eu-west-1.amazonaws.com/pdk:latest pdk
- name: Publish to Test-Docs
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
aws s3 sync --acl public-read --region eu-west-1 target/site ${{ secrets.AWS_S3_PATH }}/reporting