badhouseplants-builder/.woodpecker.yaml
Nikolai Rodionov 5c8c258623
Some checks failed
ci/woodpecker/push/woodpecker/1 Pipeline failed
ci/woodpecker/push/woodpecker/2 Pipeline failed
Build for all archs
2024-08-18 21:44:44 +02:00

44 lines
898 B
YAML

---
when:
event:
- push
matrix:
include:
- NAME: ARM
ARCH: arm64
- NAME: AMD
ARCH: amd64
steps:
build:
image: alpine
privileged: true
environment:
BUILDAH_REG: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder
commands:
- ./build
secrets:
- gitea_token
backend_options:
kubernetes:
resources:
requests:
memory: 500Mi
cpu: 200m
limits:
memory: 1000Mi
cpu: 1000m
securityContext:
privileged: true
nodeSelector:
kubernetes.io/arch: "${ARCH}"
cleanup:
image: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
secrets:
- gitea_token
environment:
BUILDAH_REG: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder
commands:
- cleanup