-
Notifications
You must be signed in to change notification settings - Fork 35
42 lines (37 loc) · 1.29 KB
/
build.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
name: build
on:
workflow_dispatch:
inputs:
regenerateIndex:
description: "Regenerate index from S3 archives"
type: boolean
required: false
push:
branches:
- master
jobs:
build-chart:
runs-on: ubuntu-latest
if: github.repository == 'aerokube/charts'
steps:
- uses: actions/checkout@v4
- name: Test
run: ci/test.sh
- name: Build
run: |
git fetch --tags
export COMMIT=$(git rev-parse --short HEAD)
ci/build.sh $COMMIT ${{ github.event.inputs.regenerateIndex != '' && github.event.inputs.regenerateIndex || 'false' }} unstable
env:
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.S3_REGION }}
- name: Send output to S3 bucket
working-directory: ./output
run: aws s3 cp . --endpoint=${{ secrets.S3_ENDPOINT }} s3://${{ secrets.S3_BUCKET_NAME }} --recursive
env:
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.S3_REGION }}