bump: blowfish/hugo version
All checks were successful
Build Hugo Docker Image / build docker (push) Successful in 4m27s
Build Blog Docker Image / build docker (push) Successful in 1m11s

This commit is contained in:
d3vyce 2024-04-30 23:33:30 +02:00
parent 2f41aadcbf
commit c3193e0adb
4 changed files with 11 additions and 3 deletions

View File

@ -3,7 +3,7 @@ name: Build Hugo Docker Image
on:
push:
paths:
- "hugo.Dockerfile"
- ".gitea/workflows/1_build_hugo_image.yml"
jobs:
build docker:
@ -25,6 +25,8 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
build-args:
HUGO_VERSION=v0.125.4
file: ./hugo.Dockerfile
platforms: linux/amd64
push: true

View File

@ -34,6 +34,8 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
build-args:
BLOWFISH_VERSION=v2.66.0
file: ./Dockerfile
platforms: linux/amd64
push: true

View File

@ -1,11 +1,13 @@
# Build Stage
FROM git.d3vyce.fr/d3vyce/hugo:latest AS build
ARG BLOWFISH_VERSION
WORKDIR /opt/blog
COPY . /opt/blog/
RUN git submodule update --init --recursive && \
git -C themes/blowfish/ checkout v2.65.0
git -C themes/blowfish/ checkout ${BLOWFISH_VERSION}
RUN hugo
# Publish Stage

View File

@ -1,10 +1,12 @@
FROM golang:1.22-alpine AS build
ARG HUGO_VERSION
ARG CGO=1
ENV CGO_ENABLED=${CGO}
ENV GOOS=linux
ENV GO111MODULE=on
RUN apk update && \
apk add --no-cache gcc musl-dev g++ git
RUN go install -tags extended github.com/gohugoio/hugo@v0.124.1
RUN go install -tags extended github.com/gohugoio/hugo@${HUGO_VERSION}