docker-keepalived-k8s/.github/workflows/main.yaml
Renovate Bot 9a1fa641b4
All checks were successful
Main / build (push) Successful in 1m0s
chore(deps): update docker/setup-buildx-action action to v3.7.1
2024-11-22 21:21:03 +00:00

53 lines
1.3 KiB
YAML

name: Main
on:
push:
branches:
- master
env:
REGISTRY_NAME: container.localdomain
jobs:
build:
if: "contains(github.event.head_commit.message, vars.SKIP_CI_PREFIX) != true"
runs-on: docker
container:
image: catthehacker/ubuntu:act-22.04
steps:
- name: Checkout repository
uses: https://antoine-roux.tk/projects/actions/checkout@v4.1.8
with:
fetch-depth: 0
fetch-tags: false
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
with:
config-inline: |
[registry."${{ env.REGISTRY_NAME }}"]
insecure = true
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ env.REGISTRY_NAME }}/keepalived-k8s:latest
platforms: |
linux/arm64
linux/amd64
- 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"