2023-07-25 11:30:41 +02:00
|
|
|
name: Build And Publish Docker
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-06-07 04:22:22 -04:00
|
|
|
- "master"
|
2023-07-25 11:30:41 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-06-04 21:59:21 -04:00
|
|
|
runs-on: debian-bookworm
|
2023-07-25 11:30:41 +02:00
|
|
|
|
2024-06-07 17:36:52 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
hugo-version: ["0.127.0"]
|
|
|
|
node-version: ["22"]
|
2023-07-25 11:30:41 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
2024-06-04 16:23:00 -04:00
|
|
|
- name: Install deps
|
2024-06-04 16:25:52 -04:00
|
|
|
run: curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
|
2024-06-04 16:23:00 -04:00
|
|
|
|
2023-07-25 11:30:41 +02:00
|
|
|
- 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
|
|
|
|
|
2024-06-04 16:15:54 -04:00
|
|
|
- name: Login to Self-Hosted Registry
|
2023-07-25 11:33:10 +02:00
|
|
|
uses: docker/login-action@v2
|
2023-07-25 11:30:41 +02:00
|
|
|
with:
|
2024-06-04 16:15:54 -04:00
|
|
|
registry: git.myco.systems
|
|
|
|
username: ${{ secrets.REGISTRY_USER }}
|
|
|
|
password: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
2023-07-25 11:30:41 +02:00
|
|
|
|
2024-06-04 16:15:54 -04:00
|
|
|
- name: Build and Push Extended Version
|
2023-07-25 11:32:46 +02:00
|
|
|
uses: docker/build-push-action@v4
|
2023-07-25 11:30:41 +02:00
|
|
|
with:
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
context: ./
|
|
|
|
file: ./Dockerfile
|
2024-06-04 16:15:54 -04:00
|
|
|
platforms: linux/amd64
|
2023-07-25 11:30:41 +02:00
|
|
|
push: true
|
2023-07-25 11:51:07 +02:00
|
|
|
build-args: |
|
|
|
|
HUGO_VERSION=${{ matrix.hugo-version }}
|
|
|
|
NODE_VERSION=${{ matrix.node-version }}
|
|
|
|
tags: |
|
2024-06-04 21:44:15 -04:00
|
|
|
git.myco.systems/mycosystems/hugo-ci:extended-alpine-${{ matrix.hugo-version }}-${{ matrix.node-version }}-${{ matrix.go-version }}
|
|
|
|
git.myco.systems/mycosystems/hugo-ci:extended-alpine-latest
|