f1bcb8cd3a
repospawner turns JSON new-repo requests into terraform-git pull requests via kubernetes Jobs, follows those PRs to merge and optionally activates the repository in Woodpecker.
24 lines
672 B
YAML
24 lines
672 B
YAML
when:
|
|
- event: pull_request
|
|
|
|
steps:
|
|
- name: docker-build
|
|
image: artifactapi.k8s.syd1.au.unkin.net/docker-internal/plugin-docker-buildx:latest
|
|
settings:
|
|
repo: artifactapi.k8s.syd1.au.unkin.net/docker-internal/repospawner
|
|
dockerfile: Dockerfile
|
|
dry_run: true
|
|
buildkit_config: |
|
|
[registry."artifactapi.k8s.syd1.au.unkin.net"]
|
|
ca = ["/etc/docker/certs.d/artifactapi.k8s.syd1.au.unkin.net/ca.crt"]
|
|
backend_options:
|
|
kubernetes:
|
|
serviceAccountName: repospawner-ci
|
|
resources:
|
|
requests:
|
|
memory: 1Gi
|
|
cpu: 1
|
|
limits:
|
|
memory: 4Gi
|
|
cpu: 2
|