Skip to content

Publish appscode-cloud/[email protected] charts (#2069) #2029

Publish appscode-cloud/[email protected] charts (#2069)

Publish appscode-cloud/[email protected] charts (#2069) #2029

Workflow file for this run

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@v1
- name: Configure gcloud
env:
GOOGLE_SERVICE_ACCOUNT_JSON_KEY: ${{ secrets.CHART_REPO_SERVICE_ACCOUNT_JSON_KEY }}
run: |
echo "install gcloud cli"
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
sudo apt-get -qq update || true
sudo apt-get install google-cloud-cli
echo
echo "configure gcloud auth"
echo "$GOOGLE_SERVICE_ACCOUNT_JSON_KEY" > "$HOME"/gcloud.json
gcloud auth activate-service-account --key-file=$HOME/gcloud.json
- 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