|
|
@@ -3,6 +3,8 @@ on:
|
|
|
|
push:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
|
|
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
|
|
|
|
|
|
|
- 'v[0-9]+.[0-9]+.[0-9]+-alpha[0-9]+'
|
|
|
|
|
|
|
|
- 'v[0-9]+.[0-9]+.[0-9]+-beta[0-9]+'
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
@@ -37,15 +39,23 @@ 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 IMG="${GITEA_REGISTRY}/${GITEA_ORG}/unifi-network-operator-controller:latest" build-installer
|
|
|
|
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/generic/unifi-network-operator/latest/install.yaml
|
|
|
|
https://gitea.engen.priv.no/api/packages/klauvsteinen/generic/unifi-network-operator/latest/install.yaml
|
|
|
|
|
|
|
|
make IMG="${GITEA_REGISTRY}/${GITEA_ORG}/unifi-network-operator-controller:$TAG" build-installer
|
|
|
|
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" \
|
|
|
|