update build script to use matrix versioning, using .github to support local act,
This commit is contained in:
parent
116019297b
commit
468f8755ea
1 changed files with 0 additions and 43 deletions
|
@ -1,43 +0,0 @@
|
|||
name: Build And Publish Docker
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: debian-bookworm
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install deps
|
||||
run: curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
|
||||
|
||||
- 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
|
||||
tags: |
|
||||
git.myco.systems/mycosystems/hugo-ci:latest
|
Loading…
Add table
Reference in a new issue