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:
|
on:
|
||||||
# push:
|
push:
|
||||||
# paths:
|
paths:
|
||||||
# - "hugo.Dockerfile"
|
- "hugo.Dockerfile"
|
||||||
|
|
||||||
# jobs:
|
jobs:
|
||||||
# build docker:
|
build docker:
|
||||||
# runs-on: linux_amd
|
runs-on: linux_amd
|
||||||
# steps:
|
steps:
|
||||||
# - name: checkout code
|
- name: checkout code
|
||||||
# uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
# - name: Set up QEMU
|
- name: Set up QEMU
|
||||||
# uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
# - name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
# uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
# - name: Login to Docker registry
|
- name: Login to Docker registry
|
||||||
# uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
# with:
|
with:
|
||||||
# registry: git.d3vyce.fr
|
registry: git.d3vyce.fr
|
||||||
# username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
# password: ${{ secrets.GIT_TOKEN }}
|
password: ${{ secrets.GIT_TOKEN }}
|
||||||
# - name: Build and push
|
- name: Build and push
|
||||||
# uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
# with:
|
with:
|
||||||
# context: .
|
context: .
|
||||||
# file: ./hugo.Dockerfile
|
file: ./hugo.Dockerfile
|
||||||
# platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
# push: true
|
push: true
|
||||||
# tags: git.d3vyce.fr/d3vyce/hugo:latest
|
tags: git.d3vyce.fr/d3vyce/hugo:latest
|
||||||
|
@ -5,7 +5,7 @@ WORKDIR /opt/blog
|
|||||||
COPY . /opt/blog/
|
COPY . /opt/blog/
|
||||||
|
|
||||||
RUN git submodule update --init --recursive && \
|
RUN git submodule update --init --recursive && \
|
||||||
git -C themes/blowfish/ checkout v2.59.0
|
git -C themes/blowfish/ checkout v2.60.0
|
||||||
RUN hugo
|
RUN hugo
|
||||||
|
|
||||||
# Publish Stage
|
# Publish Stage
|
||||||
|
@ -7,7 +7,10 @@ CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
|
|||||||
git submodule update --recursive
|
git submodule update --recursive
|
||||||
git lfs pull
|
git lfs pull
|
||||||
|
|
||||||
git -C themes/blowfish/ checkout [TAG]
|
# Bump submodule version
|
||||||
git submodule update --remote --merge
|
git submodule update --remote --merge
|
||||||
|
git -C themes/blowfish/ checkout [TAG]
|
||||||
|
|
||||||
|
# Start blog with draft
|
||||||
hugo server --buildDrafts
|
hugo server --buildDrafts
|
||||||
```
|
```
|
@ -7,4 +7,4 @@ ENV GO111MODULE=on
|
|||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk add --no-cache gcc musl-dev g++ git
|
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