Compare commits
6 Commits
renovate/c
...
main
Author | SHA1 | Date | |
---|---|---|---|
a496fe002f | |||
c8b0789d24 | |||
299d299453 | |||
21437a82be | |||
032d241ed1 | |||
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: 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
|
||||||
|
|
@ -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
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user