web-ci/.github/workflows/build.yml
brooke 2ad84a37f1
Some checks failed
Build And Publish Docker / build (1.22.3, 0.126.3, 22) (push) Has been cancelled
update branch name
2024-06-04 16:18:01 -04:00

50 lines
No EOL
1.2 KiB
YAML

name: Build And Publish Docker
on:
push:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
hugo-version: ["0.126.3"]
node-version: ["22"]
go-version: ["1.22.3"]
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 Self-Hosted Registry
uses: docker/login-action@v2
with:
registry: git.myco.systems
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Build and Push Extended Version
uses: docker/build-push-action@v4
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./
file: ./Dockerfile
platforms: linux/amd64
push: true
build-args: |
HUGO_VERSION=${{ matrix.hugo-version }}
NODE_VERSION=${{ matrix.node-version }}
GO_VERSION=${{ matrix.go-version }}
tags: |
git.myco.systems/mycosystems/hugo-ci:extended-${{ matrix.hugo-version