Compare commits
11 Commits
957439daf7
...
main
Author | SHA1 | Date | |
---|---|---|---|
78bd487cfe | |||
f342bf94ad | |||
367670897b | |||
030690546d | |||
834fc3f045 | |||
0e7b6a4634 | |||
295da91a77 | |||
8ab461d601 | |||
616accd48f | |||
24926644b6 | |||
4396c6b534 |
@ -1,33 +0,0 @@
|
|||||||
name: Build Hugo Docker Image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- ".gitea/workflows/1_build_hugo_image.yml"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build docker:
|
|
||||||
runs-on: linux_amd
|
|
||||||
steps:
|
|
||||||
- name: checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
- name: Login to Docker registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.d3vyce.fr
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GIT_TOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
build-args:
|
|
||||||
HUGO_VERSION=v0.142.0
|
|
||||||
file: ./hugo.Dockerfile
|
|
||||||
platforms: linux/amd64
|
|
||||||
push: true
|
|
||||||
tags: git.d3vyce.fr/d3vyce/hugo:latest
|
|
@ -34,8 +34,6 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
build-args:
|
|
||||||
BLOWFISH_VERSION=v2.82.0
|
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
@ -1,5 +1,5 @@
|
|||||||
# Build Stage
|
# Build Stage
|
||||||
FROM git.d3vyce.fr/d3vyce/hugo:latest AS build
|
FROM hugomods/hugo:0.147.8 AS build
|
||||||
|
|
||||||
ARG BLOWFISH_VERSION
|
ARG BLOWFISH_VERSION
|
||||||
|
|
||||||
@ -7,11 +7,11 @@ 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 ${BLOWFISH_VERSION}
|
git -C themes/blowfish/ checkout v2.87.0
|
||||||
RUN hugo
|
RUN hugo
|
||||||
|
|
||||||
# Publish Stage
|
# Publish Stage
|
||||||
FROM nginx:1.27-alpine
|
FROM nginx:1.29-alpine
|
||||||
|
|
||||||
WORKDIR /usr/share/nginx/html
|
WORKDIR /usr/share/nginx/html
|
||||||
COPY --from=build /opt/blog/public /usr/share/nginx/html/
|
COPY --from=build /opt/blog/public /usr/share/nginx/html/
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "d3vyce Blog's"
|
title: "d3vyce Blog's"
|
||||||
description: "This page was built using the Blowfish theme for Hugo."
|
description: "This page was built using the Blowfish theme for Hugo."
|
||||||
layout: "simple"
|
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< list title="Latest Projects" cardView=true limit=3 where="Type" value="projects" >}}
|
{{< list title="Latest Projects" cardView=true limit=3 where="Type" value="projects" >}}
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
FROM golang:1.23-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@${HUGO_VERSION}
|
|
Submodule themes/blowfish updated: 984320d0ef...2f12b8d0d9
Reference in New Issue
Block a user