8 Commits

Author SHA1 Message Date
29e03ccce4 Update hugo version
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-03-23 13:00:03 +01:00
0a8d6b3779 Update hugo version 2025-03-23 12:59:08 +01:00
a496fe002f Add git to the hugo container again
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-10-01 17:08:28 +02:00
c8b0789d24 Add git to the hugo container
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2024-10-01 17:03:17 +02:00
299d299453 Use a correct container for building
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-10-01 12:39:26 +02:00
21437a82be Fix CI code
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2024-10-01 12:35:53 +02:00
032d241ed1 Trigger build
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2024-10-01 12:35:03 +02:00
d95ab283ed Migrate to woodpecker 2024-10-01 12:33:43 +02:00
4 changed files with 36 additions and 35 deletions

View File

@ -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

34
.woodpecker.yml Normal file
View File

@ -0,0 +1,34 @@
---
when:
event:
- push
steps:
build:
image: zot.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
privileged: true
environment:
BUILDAH_REG: zot.badhouseplants.net/badhouseplants/hugo-container
REGISTRY_TOKEN:
from_secret: registry_token
commands:
- build-container
backend_options:
kubernetes:
resources:
requests:
memory: 200Mi
cpu: 200m
limits:
memory: 200Mi
cpu: 200m
securityContext:
privileged: true
cleanup:
image: zot.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
environment:
BUILDAH_REG: zot.badhouseplants.net/badhouseplants/badhouseplants-builder
REGISTRY_TOKEN:
from_secret: registry_token
commands:
- cleanup

View File

@ -4,7 +4,7 @@
FROM ghcr.io/allanger/dumb-downloader as builder FROM ghcr.io/allanger/dumb-downloader as builder
RUN apt-get update -y && apt-get install tar -y RUN apt-get update -y && apt-get install tar -y
ENV RUST_LOG=info ENV RUST_LOG=info
ARG HUGO_VERSION=0.125.7 ARG HUGO_VERSION=0.145.0
ARG HUGO_OUTPUT=/tmp/hugo.tar.gz 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 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 RUN tar -xf $HUGO_OUTPUT -C /tmp && rm -f $HUGO_OUTPUT
@ -12,8 +12,8 @@ RUN mkdir /out && mv /tmp/hugo /out/hugo
RUN chmod +x /out/hugo RUN chmod +x /out/hugo
FROM registry.hub.docker.com/library/debian FROM registry.hub.docker.com/library/debian
RUN apt-get update && apt-get install git -y
ENV HUGO_BIND=0.0.0.0 ENV HUGO_BIND=0.0.0.0
ENV HUGO_DESTINATION=public ENV HUGO_DESTINATION=public
COPY --from=builder /out/hugo /usr/bin/hugo COPY --from=builder /out/hugo /usr/bin/hugo
ENTRYPOINT ["hugo"] ENTRYPOINT ["hugo"]

View File

@ -1,3 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}