78 lines
1.9 KiB
YAML
78 lines
1.9 KiB
YAML
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: build-arm64
|
|
platform:
|
|
arch: arm64
|
|
os: linux
|
|
node_selector:
|
|
kubernetes.io/arch: arm64
|
|
steps:
|
|
- name: submodules
|
|
image: alpine/git
|
|
commands:
|
|
- touch .gitmodules
|
|
- echo "ENV GIT_COMMIT=$(git rev-parse HEAD)" >> Dockerfile
|
|
- echo "ENV GIT_COMMIT_TIMESTAMP=$(git log -1 --format=%cd --date=iso-strict)" >> Dockerfile
|
|
- cat Dockerfile
|
|
- name: docker
|
|
image: docker.io/codemowers/drone-kaniko:latest@sha256:0851432477117d2b3fad02c1b8d4d447b283e5b557c33ff4c93b437c64b8a66b
|
|
settings:
|
|
repo: ${DRONE_REPO}
|
|
tags: latest-arm64
|
|
registry: harbor.codemowers.eu
|
|
storage_driver: vfs
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: build-amd64
|
|
platform:
|
|
arch: amd64
|
|
os: linux
|
|
node_selector:
|
|
kubernetes.io/arch: amd64
|
|
steps:
|
|
- name: submodules
|
|
image: alpine/git
|
|
commands:
|
|
- touch .gitmodules
|
|
- echo "ENV GIT_COMMIT=$(git rev-parse HEAD)" >> Dockerfile
|
|
- echo "ENV GIT_COMMIT_TIMESTAMP=$(git log -1 --format=%cd --date=iso-strict)" >> Dockerfile
|
|
- cat Dockerfile
|
|
- name: docker
|
|
image: docker.io/codemowers/drone-kaniko:latest@sha256:0851432477117d2b3fad02c1b8d4d447b283e5b557c33ff4c93b437c64b8a66b
|
|
settings:
|
|
repo: ${DRONE_REPO}
|
|
tags: latest-amd64
|
|
registry: harbor.codemowers.eu
|
|
storage_driver: vfs
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: manifest
|
|
steps:
|
|
- name: manifest
|
|
image: plugins/manifest
|
|
settings:
|
|
registry: harbor.codemowers.eu
|
|
target: ${DRONE_REPO}:latest
|
|
template: ${DRONE_REPO}:latest-ARCH
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
depends_on:
|
|
- build-amd64
|
|
- build-arm64
|