Skip to content

Merge pull request #7 from ninech/add-labels-to-nameserver #4

Merge pull request #7 from ninech/add-labels-to-nameserver

Merge pull request #7 from ninech/add-labels-to-nameserver #4

Workflow file for this run

name: package-helm-chart
on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*-*'
workflow_dispatch:
jobs:
package-and-push-helm-chart:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set environment variables
id: set-variables
run: |
echo "REPOSITORY=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build, package and push helm chart
run: |
./tool/go run cmd/k8s-operator/generate/main.go helmcrd
./tool/helm package --app-version=${{ github.ref_name }} --version=${{ github.ref_name }} './cmd/k8s-operator/deploy/chart'
./tool/helm push ./tailscale-operator-${{ github.ref_name }}.tgz oci://${{ steps.set-variables.outputs.REPOSITORY }}/charts