Skip to content

v2024.04.09: Moon 2.6.4 #56

v2024.04.09: Moon 2.6.4

v2024.04.09: Moon 2.6.4 #56

Workflow file for this run

name: release
on:
workflow_dispatch:
inputs:
regenerateIndex:
description: "Regenerate index from S3 archives"
type: boolean
required: false
release:
types: [published]
jobs:
release-chart:
runs-on: ubuntu-latest
if: github.repository == 'aerokube/charts'
steps:
- uses: actions/checkout@v4
- name: Test
run: ci/test.sh
- name: Prepare release version
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: Build
run: ci/build.sh $RELEASE_VERSION ${{ github.event.inputs.regenerateIndex != '' && github.event.inputs.regenerateIndex || 'false' }}
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 }}