bump: blowfish/hugo version
This commit is contained in:
parent
2f41aadcbf
commit
c3193e0adb
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user