badhouseplants-builder/.drone.yml

32 lines
775 B
YAML
Raw Normal View History

2023-04-24 18:59:30 +00:00
---
# ----------------------------------------------
# -- Build an image and push it to the registry
2023-04-24 18:59:30 +00:00
# ----------------------------------------------
kind: pipeline
2023-05-24 08:11:34 +00:00
type: docker
name: Build the builder
2023-04-24 18:59:30 +00:00
trigger:
event:
- push
2023-04-24 18:59:30 +00:00
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
2023-04-24 18:59:30 +00:00
- 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