bumm: blowfish/hugo version
All checks were successful
Build Hugo Docker Image / build docker (push) Successful in 5m29s
Build Blog Docker Image / build docker (push) Successful in 1m21s

This commit is contained in:
d3vyce 2024-03-09 18:33:52 +01:00
parent d8eb2589fd
commit 9517cf8bb7
4 changed files with 35 additions and 32 deletions

View File

@ -1,31 +1,31 @@
# name: Build Hugo Docker Image
name: Build Hugo Docker Image
# on:
# push:
# paths:
# - "hugo.Dockerfile"
on:
push:
paths:
- "hugo.Dockerfile"
# jobs:
# build docker:
# runs-on: linux_amd
# steps:
# - name: checkout code
# uses: actions/checkout@v3
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# - name: Login to Docker registry
# uses: docker/login-action@v2
# with:
# registry: git.d3vyce.fr
# username: ${{ github.actor }}
# password: ${{ secrets.GIT_TOKEN }}
# - name: Build and push
# uses: docker/build-push-action@v4
# with:
# context: .
# file: ./hugo.Dockerfile
# platforms: linux/amd64
# push: true
# tags: git.d3vyce.fr/d3vyce/hugo:latest
jobs:
build docker:
runs-on: linux_amd
steps:
- name: checkout code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker registry
uses: docker/login-action@v2
with:
registry: git.d3vyce.fr
username: ${{ github.actor }}
password: ${{ secrets.GIT_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./hugo.Dockerfile
platforms: linux/amd64
push: true
tags: git.d3vyce.fr/d3vyce/hugo:latest

View File

@ -5,7 +5,7 @@ WORKDIR /opt/blog
COPY . /opt/blog/
RUN git submodule update --init --recursive && \
git -C themes/blowfish/ checkout v2.59.0
git -C themes/blowfish/ checkout v2.60.0
RUN hugo
# Publish Stage

View File

@ -7,7 +7,10 @@ CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
git submodule update --recursive
git lfs pull
git -C themes/blowfish/ checkout [TAG]
# Bump submodule version
git submodule update --remote --merge
git -C themes/blowfish/ checkout [TAG]
# Start blog with draft
hugo server --buildDrafts
```

View File

@ -7,4 +7,4 @@ 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.123.6
RUN go install -tags extended github.com/gohugoio/hugo@v0.123.7