release: finish the release of v0.3.2 (#685) #18
This file contains 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: CI triggered by release branch | |
on: | |
push: | |
branches: | |
- 'release/**' | |
jobs: | |
release-helm-charts: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# TODO: find a way to let the release workflow depends on the lint & test ones | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
cache-dependency-path: "**/*.sum" | |
- name: Check helm files | |
run: | | |
make gen-helm | |
if ! git diff --exit-code; then | |
echo "Generated files are not up-to-date. Please run 'make gen-helm' and commit changes." | |
exit 1 | |
fi | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Install Helm | |
uses: azure/setup-helm@v4 | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Add repositories | |
run: | | |
for dir in $(ls -d ./manifests/charts/*/); do | |
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done | |
done | |
- name: Smoking test | |
working-directory: ./e2e | |
run: | | |
make create-cluster deploy-istio-to-verify-helm-install | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
with: | |
charts_dir: ./manifests/charts | |
mark_as_latest: false | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |