Compare commits

..

2 Commits

Author SHA1 Message Date
2817272082 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
2025-06-24 08:35:30 +00:00
1545f05d53 fix tagging
Some checks failed
Build project / build (push) Has been cancelled
2025-06-24 10:35:05 +02: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"