-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (43 loc) · 1.46 KB
/
helm-release-ske-destination.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
45
46
47
48
49
50
51
name: Release SKE Destination Charts
on:
workflow_dispatch:
push:
branches: ['main']
paths: ['ske-destination/Chart.yaml']
env:
GITHUB_TOKEN: "${{ secrets.CR_TOKEN }}"
CR_TOKEN: "${{ secrets.CR_TOKEN }}"
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "syntassodev"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3
- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: .
pages_branch: gh-pages
skip_existing: true
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-2
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Upload Charts to Releases Bucket
run: |
VERSION=$(grep '^version:' ske-destination/Chart.yaml | awk '{print $2}' | head -n 1)
bucket_path="s3://syntasso-enterprise-releases/ske-destination-helm-chart/${VERSION}/"
echo "Uploading ske-destination-${VERSION}.tgz to ${bucket_path}"
aws s3 cp .cr-release-packages/ske-destination-${VERSION}.tgz ${bucket_path}