bumm: blowfish/hugo version
This commit is contained in:
parent
d8eb2589fd
commit
9517cf8bb7
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
```
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user