2023-05-30 07:29:15 +00:00
|
|
|
# ----------------------------------------------
|
|
|
|
# -- Build an image and push it to the registry
|
|
|
|
# ----------------------------------------------
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Build the builder
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
2023-12-08 17:44:07 +00:00
|
|
|
|
|
|
|
image-anchor: &image-anchor
|
2024-04-19 15:02:55 +00:00
|
|
|
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:9665015b44590b7ce2139f7acbad23af6628fff3
|
2023-12-08 17:44:07 +00:00
|
|
|
|
2023-05-30 07:29:15 +00:00
|
|
|
steps:
|
2023-12-08 17:44:07 +00:00
|
|
|
- <<: *image-anchor
|
|
|
|
name: Build and push the docker image
|
2023-05-30 07:29:15 +00:00
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: GITEA_TOKEN
|
|
|
|
commands:
|
|
|
|
- build-container
|
2023-12-08 17:44:07 +00:00
|
|
|
|
|
|
|
- <<: *image-anchor
|
|
|
|
name: Cleanup registry
|
2023-05-30 07:29:15 +00:00
|
|
|
environment:
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: GITEA_TOKEN
|
2023-12-08 17:38:02 +00:00
|
|
|
commands:
|
2023-05-30 07:29:15 +00:00
|
|
|
- cleanup
|