hugo-container/.drone.yml

31 lines
716 B
YAML

# ----------------------------------------------
# -- Build an image and push it to the registry
# ----------------------------------------------
kind: pipeline
type: docker
name: Build the builder
trigger:
event:
- push
image-anchor: &image-anchor
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:9665015b44590b7ce2139f7acbad23af6628fff3
steps:
- <<: *image-anchor
name: Build and push the docker image
privileged: true
environment:
GITEA_TOKEN:
from_secret: GITEA_TOKEN
commands:
- build-container
- <<: *image-anchor
name: Cleanup registry
environment:
GITEA_TOKEN:
from_secret: GITEA_TOKEN
commands:
- cleanup