Compare commits
2 Commits
47116c70b5
...
2817272082
| Author | SHA1 | Date | |
|---|---|---|---|
| 2817272082 | |||
| 1545f05d53 |
@@ -22,5 +22,12 @@ jobs:
|
|||||||
run: git config --global url.git@gitea-ssh.engen.priv.no:.insteadOf https://gitea.engen.priv.no/
|
run: git config --global url.git@gitea-ssh.engen.priv.no:.insteadOf https://gitea.engen.priv.no/
|
||||||
- name: Install ko
|
- name: Install ko
|
||||||
run: go install github.com/google/ko@latest
|
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
|
- 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