113fe6ff03
- Add the build script - Add the cleanup script
32 lines
775 B
YAML
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
|