2023-08-19 10:18:15 +00:00
|
|
|
name: Main
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
env:
|
2024-10-24 22:56:41 +00:00
|
|
|
REGISTRY_NAME: container.localdomain
|
2023-08-19 10:18:15 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-10-24 22:56:41 +00:00
|
|
|
if: "contains(github.event.head_commit.message, vars.SKIP_CI_PREFIX) != true"
|
|
|
|
|
2023-08-19 10:18:15 +00:00
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: catthehacker/ubuntu:act-22.04
|
|
|
|
steps:
|
2024-10-24 22:56:41 +00:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: https://antoine-roux.tk/projects/actions/checkout@v4.1.8
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: false
|
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-12-17 00:05:06 +00:00
|
|
|
uses: docker/setup-buildx-action@v3.8.0
|
2023-08-19 10:18:15 +00:00
|
|
|
with:
|
|
|
|
config-inline: |
|
|
|
|
[registry."${{ env.REGISTRY_NAME }}"]
|
2024-10-24 22:56:41 +00:00
|
|
|
insecure = true
|
2023-08-19 10:18:15 +00:00
|
|
|
|
|
|
|
- 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
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
tags: ${{ env.REGISTRY_NAME }}/haproxy-k8s:latest
|
|
|
|
platforms: |
|
|
|
|
linux/amd64
|
|
|
|
linux/arm64
|
2024-10-24 22:56:41 +00:00
|
|
|
|
|
|
|
- name: Auto generate changelog
|
|
|
|
uses: https://antoine-roux.tk/projects/actions/auto-changie@v1.0.1
|
|
|
|
|
|
|
|
- name: Push changelog
|
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
|
|
|
with:
|
|
|
|
commit_message: "${{ vars.SKIP_CI_PREFIX }} Push updated changelog"
|
|
|
|
file_pattern: "\\.changes/* CHANGELOG.md"
|