Compare commits
4 Commits
feature/cl
...
v0.1.1-alp
| Author | SHA1 | Date | |
|---|---|---|---|
| 13cb024c6d | |||
| f406d470c1 | |||
| 7d52648e2e | |||
| 0146a0bfba |
@@ -22,7 +22,28 @@ 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: Docker login
|
||||||
|
run: echo "${GITEA_TOKEN}" | docker login "${GITEA_REGISTRY}" --username "${GITEA_USER}" --password-stdin
|
||||||
- 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: |
|
||||||
|
export KO_DOCKER_REPO="${GITEA_REGISTRY}/${GITEA_ORG}/unifi-network-operator-controller"
|
||||||
|
ko publish ./cmd \
|
||||||
|
--tags "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: make build-installer
|
run: |
|
||||||
|
make IMG="${GITEA_REGISTRY}/${GITEA_ORG}/unifi-network-operator-controller:latest" build-installer
|
||||||
|
curl -X DELETE \
|
||||||
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
|
-H "Content-Type: application/x-yaml" \
|
||||||
|
https://gitea.engen.priv.no/api/packages/klauvsteinen/generic/unifi-network-operator/latest/install.yaml
|
||||||
|
curl -X PUT \
|
||||||
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
|
-H "Content-Type: application/x-yaml" \
|
||||||
|
--data-binary @./dist/install.yaml \
|
||||||
|
https://gitea.engen.priv.no/api/packages/klauvsteinen/generic/unifi-network-operator/latest/install.yaml
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
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 \
|
ko publish ./cmd \
|
||||||
--tags "$TAG,latest" \
|
--tags "$TAG" \
|
||||||
--image-label 'org.opencontainers.image.authors=Klauvsteinen <vegard@engen.priv.no>' \
|
--image-label 'org.opencontainers.image.authors=Klauvsteinen <vegard@engen.priv.no>' \
|
||||||
--image-label 'org.opencontainers.image.vendor=Klauvsteinen' \
|
--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.source=https://gitea.engen.priv.no/klauvsteinen/unifi-network-operator' \
|
||||||
@@ -49,12 +49,7 @@ jobs:
|
|||||||
--bare
|
--bare
|
||||||
- name: Build manifest
|
- name: Build manifest
|
||||||
run: |
|
run: |
|
||||||
make build-installer
|
make IMG="${GITEA_REGISTRY}/${GITEA_ORG}/unifi-network-operator-controller:$TAG" build-installer
|
||||||
curl -X PUT \
|
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
|
||||||
-H "Content-Type: application/x-yaml" \
|
|
||||||
--data-binary @./dist/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" \
|
||||||
|
|||||||
Reference in New Issue
Block a user