diff --git a/.drone.yml b/.drone.yml index d46084f..af30922 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,30 +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 + - name: Build and push the docker image + image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:896dc589d44bfa3560ee8d0469d5ee6fc4559532 privileged: true environment: GITEA_TOKEN: from_secret: GITEA_TOKEN commands: - build-container - - - <<: *image-anchor - name: Cleanup registry + + - name: Cleanup registry + image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:896dc589d44bfa3560ee8d0469d5ee6fc4559532 environment: GITEA_TOKEN: from_secret: GITEA_TOKEN - commands: + commands: - cleanup diff --git a/Containerfile b/Containerfile index 5fad974..8ad464b 100644 --- a/Containerfile +++ b/Containerfile @@ -4,16 +4,15 @@ 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.112.5 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_{{ version }}_{{ os }}-{{ arch }}.tar.gz" -d $HUGO_OUTPUT -p $HUGO_VERSION RUN tar -xf $HUGO_OUTPUT -C /tmp && rm -f $HUGO_OUTPUT RUN mkdir /out && mv /tmp/hugo /out/hugo RUN chmod +x /out/hugo -FROM registry.hub.docker.com/library/debian -ENV HUGO_BIND=0.0.0.0 -ENV HUGO_DESTINATION=public +FROM registry.hub.docker.com/library/alpine:3.18 +ENV HUGO_BIND=0.0.0.0 HUGO_DESTINATION=public COPY --from=builder /out/hugo /usr/bin/hugo ENTRYPOINT ["hugo"]