badhouseplants-builder/.drone.yml
Nikolai Rodionov 113fe6ff03
Add builder scripts to the container
- Add the build script
- Add the cleanup script
2023-05-30 10:39:45 +02:00

32 lines
775 B
YAML

---
# ----------------------------------------------
# -- Build an image and push it to the registry
# ----------------------------------------------
kind: pipeline
type: docker
name: Build the builder
trigger:
event:
- push
steps:
- name: Prepare the builder image
image: alpine
privileged: true
environment:
GITEA_TOKEN:
from_secret: GITEA_TOKEN
BUILDAH_REG: git.badhouseplants.net/badhouseplants/badhouseplants-builder
commands:
- ./build
- name: Cleanup
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
environment:
GITEA_TOKEN:
from_secret: GITEA_TOKEN
BUILDAH_REG: git.badhouseplants.net/badhouseplants/badhouseplants-builder
commands:
- cleanup