1
mirror of https://github.com/jakejarvis/hugo-docker.git synced 2025-04-29 19:00:31 -04:00

Compare commits

..

No commits in common. "master" and "v0.112.0" have entirely different histories.

3 changed files with 11 additions and 19 deletions

View File

@ -24,34 +24,34 @@ jobs:
if: "!contains(github.event.head_commit.message, '[skip ci]')" if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v2
- name: Login to DockerHub - name: Login to DockerHub
if: ${{ github.ref == 'refs/heads/master' }} if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v3 uses: docker/login-action@v2
with: with:
username: jakejarvis username: jakejarvis
password: ${{ secrets.DOCKER_HUB_TOKEN }} password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
if: ${{ github.ref == 'refs/heads/master' }} if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v3 uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }} password: ${{ secrets.GHCR_PAT }}
- name: Cache Docker layers - name: Cache Docker layers
uses: actions/cache@v4 uses: actions/cache@v3
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }} key: ${{ runner.os }}-buildx-${{ github.sha }}
@ -66,7 +66,7 @@ jobs:
- name: Build and push - name: Build and push
id: build id: build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v4
with: with:
builder: ${{ steps.buildx.outputs.name }} builder: ${{ steps.buildx.outputs.name }}
context: . context: .
@ -81,7 +81,7 @@ jobs:
run: echo ${{ steps.build.outputs.digest }} run: echo ${{ steps.build.outputs.digest }}
- name: Update hub description - name: Update hub description
uses: peter-evans/dockerhub-description@v4 uses: peter-evans/dockerhub-description@v3
if: ${{ github.ref == 'refs/heads/master' }} if: ${{ github.ref == 'refs/heads/master' }}
with: with:
username: jakejarvis username: jakejarvis

View File

@ -1,6 +1,6 @@
# the following version can be overridden at image build time with --build-arg # the following version can be overridden at image build time with --build-arg
# renovate: datasource=github-releases depName=gohugoio/hugo # renovate: datasource=github-releases depName=gohugoio/hugo
ARG HUGO_VERSION=0.124.1 ARG HUGO_VERSION=0.112.0
# remove/comment the following line completely to compile vanilla Hugo: # remove/comment the following line completely to compile vanilla Hugo:
ARG HUGO_BUILD_TAGS=extended ARG HUGO_BUILD_TAGS=extended
@ -8,7 +8,7 @@ ARG HUGO_BUILD_TAGS=extended
# --- # ---
# Hugo >= v0.81.0 requires Go 1.16+ to build # Hugo >= v0.81.0 requires Go 1.16+ to build
FROM golang:1.22-alpine3.18 AS build FROM golang:1.20-alpine3.18 AS build
# renew global args from above # renew global args from above
# https://docs.docker.com/engine/reference/builder/#scope # https://docs.docker.com/engine/reference/builder/#scope
@ -53,7 +53,7 @@ FROM alpine:3.18
ARG HUGO_VERSION ARG HUGO_VERSION
# https://github.com/jgm/pandoc/releases # https://github.com/jgm/pandoc/releases
# renovate: datasource=github-releases depName=jgm/pandoc # renovate: datasource=github-releases depName=jgm/pandoc
ARG PANDOC_VERSION=3.1.13 ARG PANDOC_VERSION=3.1.2
# https://github.com/sass/dart-sass-embedded/releases # https://github.com/sass/dart-sass-embedded/releases
# renovate: datasource=github-releases depName=sass/dart-sass-embedded # renovate: datasource=github-releases depName=sass/dart-sass-embedded
ARG DART_SASS_VERSION=1.62.1 ARG DART_SASS_VERSION=1.62.1

View File

@ -15,13 +15,5 @@
], ],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
} }
],
"packageRules": [
{
"matchFiles": [
"^Dockerfile$"
],
"extractVersion": "^v(?<version>.*)$"
}
] ]
} }