Merge pull request #222 from aandryashin/master #109
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-chart: | |
runs-on: ubuntu-latest | |
if: github.repository == 'aerokube/charts' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Test | |
run: ci/test.sh | |
- name: Build | |
run: | | |
git fetch --tags | |
export COMMIT=$(git rev-parse --short HEAD) | |
ci/build.sh $COMMIT unstable | |
- name: Send output to S3 bucket | |
working-directory: ./output | |
run: aws s3 cp . --endpoint=${{ secrets.S3_ENDPOINT }} s3://${{ secrets.S3_BUCKET_NAME }} --recursive --acl public-read | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }} | |
AWS_DEFAULT_REGION: ${{ secrets.S3_REGION }} |