Compare commits

..

6 Commits

Author SHA1 Message Date
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 44 additions and 34 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

42
.woodpecker.yml Normal file
View File

@ -0,0 +1,42 @@
---
when:
event:
- push
matrix:
include:
- NAME: AMD
ARCH: amd64
steps:
build:
image: zot.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
privileged: true
environment:
BUILDAH_REG: zot.badhouseplants.net/badhouseplants/hugo-container
commands:
- build-container
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

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.135.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,6 +12,7 @@ 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

View File

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