container-openvpn/.woodpecker.yaml

38 lines
736 B
YAML
Raw Normal View History

2024-05-24 14:28:59 +00:00
---
when:
event:
- push
branch:
- main
matrix:
TARGET:
- openvpn_xor
- openvpn
2024-05-24 14:28:59 +00:00
steps:
build-${TARGET}:
name: Build ${TARGET}
2024-08-18 19:48:06 +00:00
image: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
2024-05-24 14:28:59 +00:00
secrets:
- gitea_token
2024-08-18 19:50:48 +00:00
environment:
2024-08-18 19:52:18 +00:00
CONTAINER_REGISTRY: gitea.badhouseplants.net
2024-05-24 14:28:59 +00:00
privileged: true
depends_on: []
backend_options:
kubernetes:
resources:
requests:
2024-08-18 20:36:44 +00:00
memory: 1024Mi
cpu: 300m
2024-05-24 14:28:59 +00:00
limits:
2024-08-18 20:36:44 +00:00
memory: 1024Mi
2024-05-24 14:28:59 +00:00
securityContext:
privileged: true
2024-08-18 19:48:06 +00:00
nodeSelector:
kubernetes.io/arch: "amd64"
2024-05-24 14:28:59 +00:00
commands:
- source ./env/${TARGET}.env
- ./scripts/$SCRIPT