This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (43 loc) · 1.49 KB
/
ci.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
50
51
52
53
name: CI
on: [ push ]
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Discover Go cache paths
id: go-cache-paths
run: |
echo "::set-output name=go-mod-cache::$(go env GOMODCACHE)"
echo "::set-output name=go-build-cache::$(go env GOCACHE)"
- uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-mod-cache }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-build-cache }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Build
run: make github_push_ci
- name: Publish SDK and plugin to S3
run: |
if [[ "$GITHUB_REF" == "refs/heads/feature*" ]]; then export TARGET_DIRECTORY='/feature/' ; else export TARGET_DIRECTORY='/' ; fi
make github_deploy_ci
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-central-1
TARGET_S3_BUCKET: moneymeets-pulumi-provider