docker-keepalived-k8s/.github/workflows/main.yaml

53 lines
1.3 KiB
YAML
Raw Normal View History

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
uses: docker/setup-qemu-action@v3
2023-07-14 18:37:11 +00:00
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
2023-07-14 18:37:11 +00:00
with:
config-inline: |
[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
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"