44 lines
898 B
YAML
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
|