Migrate to woodpecker
This commit is contained in:
parent
65dfdda96d
commit
d95ab283ed
30
.drone.yml
30
.drone.yml
@ -1,30 +0,0 @@
|
||||
# ----------------------------------------------
|
||||
# -- 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
|
42
.woodpecker.yml
Normal file
42
.woodpecker.yml
Normal file
@ -0,0 +1,42 @@
|
||||
---
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- NAME: AMD
|
||||
ARCH: amd64
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: alpine
|
||||
privileged: true
|
||||
environment:
|
||||
BUILDAH_REG: zot.badhouseplants.net/badhouseplants/hugo-container
|
||||
commands:
|
||||
- ./build
|
||||
secrets:
|
||||
- registry_token
|
||||
backend_options:
|
||||
kubernetes:
|
||||
resources:
|
||||
requests:
|
||||
memory: 200Mi
|
||||
cpu: 200m
|
||||
limits:
|
||||
memory: 200Mi
|
||||
cpu: 200m
|
||||
securityContext:
|
||||
privileged: true
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: "${ARCH}"
|
||||
cleanup:
|
||||
image: zot.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
|
||||
secrets:
|
||||
- registry_token
|
||||
environment:
|
||||
BUILDAH_REG: zot.badhouseplants.net/badhouseplants/badhouseplants-builder
|
||||
commands:
|
||||
- cleanup
|
||||
|
@ -4,7 +4,7 @@
|
||||
FROM ghcr.io/allanger/dumb-downloader as builder
|
||||
RUN apt-get update -y && apt-get install tar -y
|
||||
ENV RUST_LOG=info
|
||||
ARG HUGO_VERSION=0.125.7
|
||||
ARG HUGO_VERSION=0.135.0
|
||||
ARG HUGO_OUTPUT=/tmp/hugo.tar.gz
|
||||
RUN dudo -l "https://github.com/gohugoio/hugo/releases/download/v{{ version }}/hugo_extended_{{ version }}_{{ os }}-{{ arch }}.tar.gz" -d $HUGO_OUTPUT -p $HUGO_VERSION
|
||||
RUN tar -xf $HUGO_OUTPUT -C /tmp && rm -f $HUGO_OUTPUT
|
||||
|
Loading…
Reference in New Issue
Block a user