Compare commits

..

1 Commits

Author SHA1 Message Date
0cdaa34650 Add renovate.json 2024-09-11 14:22:39 +00:00
4 changed files with 34 additions and 44 deletions

30
.drone.yml Normal file
View File

@ -0,0 +1,30 @@
# ----------------------------------------------
# -- 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

View File

@ -1,42 +0,0 @@
---
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
RUN apt-get update -y && apt-get install tar -y
ENV RUST_LOG=info
ARG HUGO_VERSION=0.135.0
ARG HUGO_VERSION=0.125.7
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
@ -12,7 +12,6 @@ RUN mkdir /out && mv /tmp/hugo /out/hugo
RUN chmod +x /out/hugo
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_DESTINATION=public
COPY --from=builder /out/hugo /usr/bin/hugo

3
renovate.json Normal file
View File

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