Merge pull request 'fix tagging' (#3) from feature/fix-publish-pipeline into main
Some checks failed
Publish / build (push) Failing after 1m7s

Reviewed-on: #3
This commit is contained in:
2025-06-24 08:35:30 +00:00

View File

@@ -22,5 +22,12 @@ jobs:
run: git config --global url.git@gitea-ssh.engen.priv.no:.insteadOf https://gitea.engen.priv.no/
- name: Install ko
run: go install github.com/google/ko@latest
- name: Extract tag
id: get_tag
run: |
echo "tag=${GITEA_REF##refs/tags/}" >> "$GITEA_OUTPUT"
- name: Build
run: KO_DOCKER_REPO=registry.engen.priv.no/unifi-network-operator-controller PATH=~/go/bin:$PATH ko publish ./cmd --tags latest --bare
env:
KO_DOCKER_REPO: registry.engen.priv.no/unifi-network-operator-controller
PATH: /go/bin:$PATH
run: ko publish ./cmd --tags "${{ steps.get_tag.outputs.tag }},latest"