Skip to content

fix: helm chart crds #41

fix: helm chart crds

fix: helm chart crds #41

Workflow file for this run

# .github/workflows/release.yml
name: Release
on:
workflow_dispatch:
push:
tags:
- "v*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IMAGE_NAME: zeiss/typhoon
REGISTRY: ghcr.io
jobs:
test:
permissions:
checks: write
uses: ./.github/workflows/main.yml
release:
needs: [test]
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- uses: actions/checkout@v4
- run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
key: ${{ github.job }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ github.job }}-${{ runner.os }}-go-
- id: image-tag
run: |
IMAGE_TAG=${GITHUB_SHA}
[[ ${GITHUB_REF_TYPE} == "tag" ]] && IMAGE_TAG=${GITHUB_REF_NAME}
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_OUTPUT
- run: sudo apt-get update && sudo apt install -y libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev
- run: |
IMAGE_TAG=${{ steps.image-tag.outputs.IMAGE_TAG }} make release
env:
KO_DOCKER_REPO: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
DIST_DIR: /tmp/dist
if: success()
- run: |
go run internal/tools/updater/main.go --file charts/typhoon/Chart.yaml --version ${{ env.RELEASE_VERSION }}
- uses: helm/chart-releaser-action@v1.6.0
with:
charts_dir: helm/charts
config: ${{ github.workspace }}/.cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/upload-artifact@v4
with:
name: manifests
path: /tmp/dist
retention-days: 14