diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 88a95e4..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule ".woodpecker"] - path = .woodpecker - url = https://git.k-space.ee/k-space/container-image-pipeline diff --git a/.woodpecker b/.woodpecker deleted file mode 160000 index 4dc067c..0000000 --- a/.woodpecker +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4dc067cec0229ff02540163a9fe0f3b0a5dfa4a9 diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..f2ef221 --- /dev/null +++ b/.woodpecker/build.yaml @@ -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 diff --git a/.woodpecker/manifest.yaml b/.woodpecker/manifest.yaml new file mode 100644 index 0000000..0c83338 --- /dev/null +++ b/.woodpecker/manifest.yaml @@ -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