-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (33 loc) · 1.02 KB
/
s3sync.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
name: S3 Sync
on:
push:
branches:
- main
paths:
- charts/ocean-network-client/**
jobs:
s3sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: "v3.9.0"
- name: Helm Template
run: |
mkdir charts/helm-template-output
cd charts/ocean-network-client
helm template . > ../helm-template-output/network-client.yaml
echo "Helm template grnerated yamls: "
cat ../helm-template-output/network-client.yaml
- name: S3 Sync
uses: jakejarvis/s3-sync-action@master
env:
AWS_S3_BUCKET: spotinst-public
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"
SOURCE_DIR: "charts/helm-template-output/"
DEST_DIR: "integrations/kubernetes/network-client/templates/"