Skip to content

Commit

Permalink
manually package, upload, and index
Browse files Browse the repository at this point in the history
  • Loading branch information
Mya Pitzeruse committed Jul 7, 2021
1 parent 73e7244 commit fc86768
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,25 @@ jobs:
- name: Prepare
run: |
sudo apt-get install wget
wget https://github.com/mikefarah/yq/releases/download/v4.9.7/yq_linux_amd64 -O ./yq && chmod +x ./yq
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install yq
env:
VERSION: 4.9.7
run: |
wget https://github.com/mikefarah/yq/releases/download/v${VERSION}/yq_linux_amd64 -O ./yq
chmod +x ./yq
sudo mv ./yq /usr/bin/yq
- name: Install chart-releaser
env:
VERSION: 1.2.1
run: |
wget https://github.com/helm/chart-releaser/releases/download/v${VERSION}/chart-releaser_${VERSION}_linux_amd64.tar.gz -O cr.tgz
tar zxf cr.tgz cr && rm cr.tgz
sudo mv ./cr /usr/bin/cr
- name: Install Helm
uses: azure/setup-helm@v1
with:
Expand All @@ -65,8 +80,8 @@ jobs:
shell: bash
run: |
export VERSION="\"${GITHUB_REF##*/v}\""
./yq e ".version = ${VERSION}" -i ./deploy/cluster-agent/Chart.yaml
./yq e ".appVersion = ${VERSION}" -i ./deploy/cluster-agent/Chart.yaml
yq e ".version = ${VERSION}" -i ./deploy/cluster-agent/Chart.yaml
yq e ".appVersion = ${VERSION}" -i ./deploy/cluster-agent/Chart.yaml
# TODO: Setup GPG signing
# - name: Prepare GPG key
Expand All @@ -90,10 +105,21 @@ jobs:
# run: |
# helm repo add bitnami https://charts.bitnami.com/bitnami

- name: Run chart-releaser
uses: helm/[email protected]
# package and upload manually since
- name: Package
run: |
cr package
- name: Upload
uses: softprops/action-gh-release@v1
with:
charts_dir: deploy
config: cr.yaml
files: |
.cr-release-packages/*
env:
GITHUB_TOKEN: ${{ secrets.CHART_RELEASER_TOKEN }}

- name: Index
run: |
cr index
env:
CR_TOKEN: "${{ secrets.CHART_RELEASER_TOKEN }}"

0 comments on commit fc86768

Please sign in to comment.