Skip to content

Merge pull request #132 from qalita-io/fixressourcesrequirements #132

Merge pull request #132 from qalita-io/fixressourcesrequirements

Merge pull request #132 from qalita-io/fixressourcesrequirements #132

Workflow file for this run

name: Release Charts
on:
push:
branches:
- main
paths:
- "charts/**"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch history
run: git fetch --prune --unshallow
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare GPG key
run: |
gpg_dir=.cr-gpg
mkdir "$gpg_dir"
keyring="$gpg_dir/secring.gpg"
base64 -d <<< "$HELM_SIGN_GPG_SECRING" > "$keyring"
passphrase_file="$gpg_dir/passphrase"
echo "$HELM_SIGNING_PRIVATE_KEY_PASSPHRASE" > "$passphrase_file"
echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV"
echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV"
env:
HELM_SIGN_GPG_SECRING: "${{ secrets.HELM_SIGN_GPG_SECRING }}"
HELM_SIGNING_PRIVATE_KEY_PASSPHRASE: "${{ secrets.HELM_SIGNING_PRIVATE_KEY_PASSPHRASE }}"
- name: Set up Helm repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add seaweedfs https://seaweedfs.github.io/seaweedfs/helm
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
with:
config: cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"