Update CI
This commit is contained in:
parent
63abd46364
commit
f36f893e70
@ -1,2 +0,0 @@
|
|||||||
kind: template
|
|
||||||
load: docker.yaml
|
|
@ -1,13 +0,0 @@
|
|||||||
pipeline:
|
|
||||||
build:
|
|
||||||
image: plugins/kaniko
|
|
||||||
settings:
|
|
||||||
repo: harbor.k-space.ee/${CI_REPO}
|
|
||||||
tags: latest
|
|
||||||
registry: harbor.k-space.ee
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
when:
|
|
||||||
branch: master
|
|
26
.woodpecker/build.yaml
Normal file
26
.woodpecker/build.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
matrix:
|
||||||
|
ARCH:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: woodpeckerci/plugin-kaniko
|
||||||
|
backend_options:
|
||||||
|
kubernetes:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/arch: ${ARCH}
|
||||||
|
tolerations:
|
||||||
|
- key: arch
|
||||||
|
operator: Equal
|
||||||
|
value: ${ARCH}
|
||||||
|
effect: NoSchedule
|
||||||
|
settings:
|
||||||
|
repo: ${CI_REPO}
|
||||||
|
registry: harbor.k-space.ee
|
||||||
|
tags: latest-${ARCH}
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
31
.woodpecker/manifest.yaml
Normal file
31
.woodpecker/manifest.yaml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
skip_clone: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: manifest
|
||||||
|
image: mirror.gcr.io/mplatform/manifest-tool:alpine-v2.1.6
|
||||||
|
secrets:
|
||||||
|
- docker_username
|
||||||
|
- docker_password
|
||||||
|
commands:
|
||||||
|
- set -u
|
||||||
|
- ls -lash
|
||||||
|
- env
|
||||||
|
- |
|
||||||
|
cat << EOF > spec.yaml
|
||||||
|
image: "harbor.k-space.ee/${CI_REPO}:latest"
|
||||||
|
manifests:
|
||||||
|
- image: "harbor.k-space.ee/${CI_REPO}:latest-amd64"
|
||||||
|
platform:
|
||||||
|
architecture: amd64
|
||||||
|
os: linux
|
||||||
|
- image: "harbor.k-space.ee/${CI_REPO}:latest-arm64"
|
||||||
|
platform:
|
||||||
|
architecture: arm64
|
||||||
|
os: linux
|
||||||
|
EOF
|
||||||
|
- /manifest-tool --username $docker_username --password $docker_password push from-spec spec.yaml > stdout
|
||||||
|
- cat stdout
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build
|
Loading…
Reference in New Issue
Block a user