Publish appscode-cloud/installer@v2026.2.16 charts (#2970) #2902
This file contains hidden or 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: Publish | |
| on: | |
| push: | |
| branches: | |
| - master | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}-release | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Configure S3 CLI | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }} | |
| AWS_S3_ENDPOINT: ${{ secrets.CLOUDFLARE_R2_ENDPOINT }} | |
| run: | | |
| echo "install aws cli" | |
| sudo apt-get -qq update || true | |
| sudo apt-get install -y python3-pip | |
| pip3 install awscli | |
| echo | |
| echo "configure aws credentials" | |
| aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID | |
| aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY | |
| aws configure set region us-east-1 | |
| aws configure set s3.signature_version s3v4 | |
| aws configure set endpoint_url $AWS_S3_ENDPOINT | |
| - name: Install GitHub CLI | |
| run: | | |
| curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1 | |
| sudo mv bin/hub /usr/local/bin | |
| - name: Install Helm 3 | |
| run: | | |
| echo "install helm 3" | |
| pushd /usr/local/bin && sudo curl -fsSLO https://github.com/x-helm/helm/releases/latest/download/helm && sudo chmod +x helm && popd | |
| - name: Publish charts | |
| env: | |
| GITHUB_USER: 1gtm | |
| GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }} | |
| CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} | |
| run: | | |
| ./hack/scripts/publish.sh |