2024-05-25 12:33:08 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
2024-08-18 19:44:44 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- NAME: ARM
|
|
|
|
ARCH: arm64
|
|
|
|
- NAME: AMD
|
|
|
|
ARCH: amd64
|
|
|
|
|
2024-05-25 12:33:08 +00:00
|
|
|
steps:
|
|
|
|
build:
|
|
|
|
image: alpine
|
|
|
|
privileged: true
|
2024-05-25 12:38:07 +00:00
|
|
|
environment:
|
2024-08-18 19:30:19 +00:00
|
|
|
BUILDAH_REG: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder
|
2024-05-25 12:33:08 +00:00
|
|
|
commands:
|
|
|
|
- ./build
|
|
|
|
secrets:
|
|
|
|
- gitea_token
|
|
|
|
backend_options:
|
|
|
|
kubernetes:
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: 500Mi
|
|
|
|
cpu: 200m
|
|
|
|
limits:
|
|
|
|
memory: 1000Mi
|
|
|
|
cpu: 1000m
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
2024-08-18 19:44:44 +00:00
|
|
|
nodeSelector:
|
|
|
|
kubernetes.io/arch: "${ARCH}"
|
2024-05-25 12:33:08 +00:00
|
|
|
cleanup:
|
2024-08-18 19:30:19 +00:00
|
|
|
image: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
|
2024-05-25 12:33:08 +00:00
|
|
|
secrets:
|
|
|
|
- gitea_token
|
|
|
|
environment:
|
2024-08-18 19:30:19 +00:00
|
|
|
BUILDAH_REG: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder
|
2024-05-25 12:33:08 +00:00
|
|
|
commands:
|
|
|
|
- cleanup
|