bump - hugo-version: ["0.126.3"] node-version: ["22"] go-version: ["1.22.3"]
This commit is contained in:
parent
5c42ba9d88
commit
605d3ce31c
2 changed files with 17 additions and 90 deletions
97
.github/workflows/build.yml
vendored
97
.github/workflows/build.yml
vendored
|
@ -3,52 +3,17 @@ name: Build And Publish Docker
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "master"
|
- "main"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
hugo-version:
|
hugo-version: ["0.126.3"]
|
||||||
[
|
node-version: ["22"]
|
||||||
#"0.112.6",
|
go-version: ["1.22.3"]
|
||||||
"0.112.7",
|
|
||||||
"0.113.0",
|
|
||||||
#"0.114.0",
|
|
||||||
"0.114.1",
|
|
||||||
#"0.115.0",
|
|
||||||
#"0.115.1",
|
|
||||||
#"0.115.2",
|
|
||||||
#"0.115.3",
|
|
||||||
"0.115.4",
|
|
||||||
#"0.116.0",
|
|
||||||
"0.116.1",
|
|
||||||
"0.117.0",
|
|
||||||
#"0.118.0",
|
|
||||||
#"0.118.1",
|
|
||||||
"0.118.2",
|
|
||||||
"0.119.0",
|
|
||||||
#"0.120.1",
|
|
||||||
#"0.120.2",
|
|
||||||
#"0.120.3",
|
|
||||||
"0.120.4",
|
|
||||||
#"0.121.0",
|
|
||||||
"0.121.1"
|
|
||||||
]
|
|
||||||
node-version: ["18", "20", "21"]
|
|
||||||
go-version:
|
|
||||||
[
|
|
||||||
"1",
|
|
||||||
"1.19",
|
|
||||||
#"1.19.11",
|
|
||||||
"1.20",
|
|
||||||
#"1.20.5",
|
|
||||||
#"1.20.6",
|
|
||||||
"1.21",
|
|
||||||
"1.21.5"
|
|
||||||
]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -62,62 +27,24 @@ jobs:
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@master
|
uses: docker/setup-buildx-action@master
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to Self-Hosted Registry
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_USER }}
|
registry: git.myco.systems
|
||||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build and Push Extended Version
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
context: ./
|
context: ./
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: linux/amd64 # ,linux/arm64/v8
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
build-args: |
|
||||||
HUGO_VERSION=${{ matrix.hugo-version }}
|
HUGO_VERSION=${{ matrix.hugo-version }}
|
||||||
NODE_VERSION=${{ matrix.node-version }}
|
NODE_VERSION=${{ matrix.node-version }}
|
||||||
GO_VERSION=${{ matrix.go-version }}
|
GO_VERSION=${{ matrix.go-version }}
|
||||||
tags: |
|
tags: |
|
||||||
"betterweb/hugo:extended-${{ matrix.hugo-version }}-${{ matrix.node-version }}-${{ matrix.go-version }}"
|
git.myco.systems/mycosystems/hugo-ci:extended-${{ matrix.hugo-version
|
||||||
|
|
||||||
build-latest:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@master
|
|
||||||
with:
|
|
||||||
platforms: all
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
id: buildx
|
|
||||||
uses: docker/setup-buildx-action@master
|
|
||||||
|
|
||||||
- name: Login to DockerHub
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_HUB_USER }}
|
|
||||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
uses: docker/build-push-action@v4
|
|
||||||
with:
|
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
context: ./
|
|
||||||
file: ./Dockerfile
|
|
||||||
platforms: linux/amd64 # ,linux/arm64/v8
|
|
||||||
push: true
|
|
||||||
build-args: |
|
|
||||||
HUGO_VERSION=0.115.4
|
|
||||||
NODE_VERSION=18
|
|
||||||
GO_VERSION=1.20
|
|
||||||
tags: |
|
|
||||||
betterweb/hugo:latest
|
|
||||||
betterweb/hugo:extended-latest
|
|
|
@ -1,14 +1,14 @@
|
||||||
ARG GO_VERSION="1.21"
|
ARG GO_VERSION="1.22.3"
|
||||||
FROM golang:${GO_VERSION}-bullseye
|
FROM golang:${GO_VERSION}-bullseye
|
||||||
|
|
||||||
ARG HUGO_VERSION="0.121.1"
|
ARG HUGO_VERSION="0.126.3"
|
||||||
ARG NODE_VERSION="18"
|
ARG NODE_VERSION="22"
|
||||||
|
|
||||||
RUN apt update -y
|
RUN apt update -y
|
||||||
RUN apt install tar gzip build-essential ca-certificates curl gnupg -y
|
RUN apt install tar gzip build-essential ca-certificates curl gnupg -y
|
||||||
RUN mkdir -p /etc/apt/keyrings
|
RUN mkdir -p /etc/apt/keyrings
|
||||||
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/setup_$NODE_VERSION.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||||
RUN apt update -y && apt-get install -y nodejs
|
RUN apt update -y && apt-get install -y nodejs
|
||||||
RUN npm i -g yarn pnpm
|
RUN npm i -g yarn pnpm
|
||||||
RUN mkdir /tmp/temph
|
RUN mkdir /tmp/temph
|
||||||
|
|
Loading…
Add table
Reference in a new issue