This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user