Compare commits
13 Commits
v0.0.4
...
v0.1.1-alp
| Author | SHA1 | Date | |
|---|---|---|---|
| efeaf521fd | |||
| 7ce8682ecb | |||
| 744e43c1f4 | |||
| 8095723337 | |||
| 9e7b6123c2 | |||
| 062b386f7f | |||
| aca35507ba | |||
| 4ede272b70 | |||
| 5e413a64e8 | |||
| 1cfd5ef55c | |||
| c89dad396b | |||
| cddda7098c | |||
| 9a186ad190 |
@@ -22,3 +22,5 @@ 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: Build
|
- name: Build
|
||||||
run: go build cmd/main.go
|
run: go build cmd/main.go
|
||||||
|
- name: Build manifest
|
||||||
|
run: make build-installer
|
||||||
|
|||||||
@@ -24,3 +24,5 @@ jobs:
|
|||||||
run: go install github.com/google/ko@latest
|
run: go install github.com/google/ko@latest
|
||||||
- name: Build
|
- name: Build
|
||||||
run: KO_DOCKER_REPO=gitea.engen.priv.no/unifi-network-operator-controller PATH=~/go/bin:$PATH ko build --local ./cmd
|
run: KO_DOCKER_REPO=gitea.engen.priv.no/unifi-network-operator-controller PATH=~/go/bin:$PATH ko build --local ./cmd
|
||||||
|
- name: Build manifest
|
||||||
|
run: make build-installer
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: Publish
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+(?:-{alpha,beta}[0-9]+)'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -37,7 +37,14 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
export KO_DOCKER_REPO="${GITEA_REGISTRY}/${GITEA_ORG}/unifi-network-operator-controller"
|
export KO_DOCKER_REPO="${GITEA_REGISTRY}/${GITEA_ORG}/unifi-network-operator-controller"
|
||||||
ko publish ./cmd --tags "$TAG,latest" --bare
|
ko publish ./cmd \
|
||||||
|
--tags "$TAG,latest" \
|
||||||
|
--image-label 'org.opencontainers.image.authors=Klauvsteinen <vegard@engen.priv.no>' \
|
||||||
|
--image-label 'org.opencontainers.image.vendor=Klauvsteinen' \
|
||||||
|
--image-label 'org.opencontainers.image.source=https://gitea.engen.priv.no/klauvsteinen/unifi-network-operator' \
|
||||||
|
--image-label 'org.opencontainers.image.url=https://gitea.engen.priv.no/klauvsteinen/unifi-network-operator' \
|
||||||
|
--image-label 'dev.chainguard.package.main=' \
|
||||||
|
--bare
|
||||||
- name: Build manifest
|
- name: Build manifest
|
||||||
run: |
|
run: |
|
||||||
make build-installer
|
make build-installer
|
||||||
@@ -45,10 +52,10 @@ jobs:
|
|||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/x-yaml" \
|
-H "Content-Type: application/x-yaml" \
|
||||||
--data-binary @./dist/install.yaml \
|
--data-binary @./dist/install.yaml \
|
||||||
https://gitea.engen.priv.no/api/packages/klauvsteinen/unifi-network-operator/latest/install.yaml
|
https://gitea.engen.priv.no/api/packages/klauvsteinen/generic/unifi-network-operator/latest/install.yaml
|
||||||
curl -X PUT \
|
curl -X PUT \
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/x-yaml" \
|
-H "Content-Type: application/x-yaml" \
|
||||||
--data-binary @./dist/install.yaml \
|
--data-binary @./dist/install.yaml \
|
||||||
https://gitea.engen.priv.no/api/packages/klauvsteinen/unifi-network-operator/$TAG/install.yaml
|
https://gitea.engen.priv.no/api/packages/klauvsteinen/generic/unifi-network-operator/$TAG/install.yaml
|
||||||
|
|
||||||
|
|||||||
7
ko.yaml
Normal file
7
ko.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
defaultBaseImage: cgr.dev/chainguard/static:latest
|
||||||
|
|
||||||
|
labels:
|
||||||
|
org.opencontainers.image.authors: Vegard Engen <vegard@engen.priv.no>
|
||||||
|
org.opencontainers.image.source: https://gitea.engen.priv.no/klauvsteinen/unifi-network-operator
|
||||||
|
org.opencontainers.image.vendor: Klauvsteinen
|
||||||
|
dev.chainguard.package.main: ""
|
||||||
Reference in New Issue
Block a user