softplayer-ansible/.woodpecker/build.yaml

33 lines
770 B
YAML

---
when:
event:
- push
steps:
build:
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:152f5b777abda1b18e3b231c295e2574f0e1cbdb
name: Build shoebill operator image
privileged: true
environment:
- PACKAGE_NAME=softplayer/softplayer-backend
commands:
- git config --global --add safe.directory '*'
- |
if [[ "${CI_COMMIT_TAG}" ]]; then
export CUSTOM_TAG="${CI_COMMIT_TAG}";
fi
- build-container
secrets:
- gitea_token
backend_options:
kubernetes:
resources:
requests:
memory: 500Mi
cpu: 200m
limits:
memory: 1000Mi
cpu: 1000m
securityContext:
privileged: true