badhouseplants-builder/.drone.yml

28 lines
747 B
YAML
Raw Normal View History

2023-04-24 18:59:30 +00:00
---
# ----------------------------------------------
# -- Build the site and push it to the registry
# ----------------------------------------------
kind: pipeline
type: kubernetes
name: Build badhouseplants.net
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:
- apk update
- apk add buildah cni-plugins iptables ip6tables
- buildah login -u allanger -p $GITEA_TOKEN git.badhouseplants.net
- buildah build -t $BUILDAH_REG:$DRONE_COMMIT_SHA .
2023-04-24 18:59:30 +00:00
- buildah push $BUILDAH_REG:$DRONE_COMMIT_SHA