2023-07-14 18:37:11 +00:00
|
|
|
name: Main
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
env:
|
2024-10-24 23:16:36 +00:00
|
|
|
REGISTRY_NAME: container.localdomain
|
2023-07-14 18:37:11 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-10-24 23:16:36 +00:00
|
|
|
if: "contains(github.event.head_commit.message, vars.SKIP_CI_PREFIX) != true"
|
|
|
|
|
2023-07-14 18:37:11 +00:00
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: catthehacker/ubuntu:act-22.04
|
|
|
|
steps:
|
2024-10-24 23:16:36 +00:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: https://antoine-roux.tk/projects/actions/checkout@v4.1.8
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: false
|
2023-07-14 18:37:11 +00:00
|
|
|
|
|
|
|
- name: Set up QEMU
|
2023-10-27 00:06:19 +00:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2023-07-14 18:37:11 +00:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2024-12-17 00:05:37 +00:00
|
|
|
uses: docker/setup-buildx-action@v3.8.0
|
2023-07-14 18:37:11 +00:00
|
|
|
with:
|
|
|
|
config-inline: |
|
2023-08-19 10:15:11 +00:00
|
|
|
[registry."${{ env.REGISTRY_NAME }}"]
|
2024-10-24 23:16:36 +00:00
|
|
|
insecure = true
|
2023-07-14 18:37:11 +00:00
|
|
|
|
|
|
|
- name: Build and push
|
2024-06-18 00:21:37 +00:00
|
|
|
uses: docker/build-push-action@v6
|
2023-07-14 18:37:11 +00:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
tags: ${{ env.REGISTRY_NAME }}/keepalived-k8s:latest
|
|
|
|
platforms: |
|
|
|
|
linux/arm64
|
|
|
|
linux/amd64
|
2024-10-24 23:16:36 +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"
|