2023-04-24 18:59:30 +00:00
|
|
|
---
|
|
|
|
# ----------------------------------------------
|
2023-05-27 21:07:58 +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
|
2023-05-27 21:07:58 +00:00
|
|
|
name: Build the builder
|
2023-04-24 18:59:30 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
2023-05-27 21:07:58 +00:00
|
|
|
|
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:
|
2023-05-27 21:07:58 +00:00
|
|
|
- ./build
|
2023-04-24 18:59:30 +00:00
|
|
|
|
2023-05-27 21:07:58 +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
|