diff --git a/.gitea/workflows/build_hugo_image.yml b/.gitea/workflows/build_hugo_image.yml index 1addf6b..fb50a60 100644 --- a/.gitea/workflows/build_hugo_image.yml +++ b/.gitea/workflows/build_hugo_image.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 591f7e1..5b66091 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 5b03705..f602032 100644 --- a/README.md +++ b/README.md @@ -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 ``` \ No newline at end of file diff --git a/hugo.Dockerfile b/hugo.Dockerfile index 4f8ab3c..e09be94 100644 --- a/hugo.Dockerfile +++ b/hugo.Dockerfile @@ -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