38 lines
736 B
YAML
38 lines
736 B
YAML
---
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- main
|
|
|
|
matrix:
|
|
TARGET:
|
|
- openvpn_xor
|
|
- openvpn
|
|
|
|
steps:
|
|
build-${TARGET}:
|
|
name: Build ${TARGET}
|
|
image: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
|
|
secrets:
|
|
- gitea_token
|
|
environment:
|
|
CONTAINER_REGISTRY: gitea.badhouseplants.net
|
|
privileged: true
|
|
depends_on: []
|
|
backend_options:
|
|
kubernetes:
|
|
resources:
|
|
requests:
|
|
memory: 1024Mi
|
|
cpu: 300m
|
|
limits:
|
|
memory: 1024Mi
|
|
securityContext:
|
|
privileged: true
|
|
nodeSelector:
|
|
kubernetes.io/arch: "amd64"
|
|
commands:
|
|
- source ./env/${TARGET}.env
|
|
- ./scripts/$SCRIPT
|