hugo-container/.drone.yml

28 lines
785 B
YAML
Raw Normal View History

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:38:02 +00:00
environment:
BUILDER_VERSION: 555262114ea81f6f286010474527f419b56d33a3
2023-05-30 07:29:15 +00:00
steps:
- name: Build and push the docker image
2023-12-08 17:38:02 +00:00
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:${BUILDER_VERSION}
2023-05-30 07:29:15 +00:00
privileged: true
environment:
GITEA_TOKEN:
from_secret: GITEA_TOKEN
commands:
- build-container
- name: Cleanup registry
2023-12-08 17:38:02 +00:00
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:${BUILDER_VERSION}
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