2023-08-19 10:18:15 +00:00
|
|
|
name: Main
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
env:
|
|
|
|
REGISTRY_NAME: container.localdomain:5000
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: catthehacker/ubuntu:act-22.04
|
|
|
|
steps:
|
2024-08-26 00:05:47 +00:00
|
|
|
- uses: RouxAntoine/checkout@v4.1.8
|
2023-08-19 10:18:15 +00:00
|
|
|
|
|
|
|
- name: Set up QEMU
|
2023-10-28 00:05:03 +00:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2023-08-19 10:18:15 +00:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2024-07-30 00:00:57 +00:00
|
|
|
uses: docker/setup-buildx-action@v3.6.1
|
2023-08-19 10:18:15 +00:00
|
|
|
with:
|
|
|
|
config-inline: |
|
|
|
|
[registry."${{ env.REGISTRY_NAME }}"]
|
|
|
|
http = true
|
|
|
|
|
|
|
|
- name: Build and push
|
2024-06-18 00:18:46 +00:00
|
|
|
uses: docker/build-push-action@v6
|
2023-08-19 10:18:15 +00:00
|
|
|
env:
|
|
|
|
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
tags: ${{ env.REGISTRY_NAME }}/haproxy-k8s:latest
|
|
|
|
platforms: |
|
|
|
|
linux/amd64
|
|
|
|
linux/arm64
|