This commit is contained in:
parent
c65a767b42
commit
0342500248
39
.github/workflows/main.yaml
vendored
Normal file
39
.github/workflows/main.yaml
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
name: Main
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY_NAME: docker.registry:5000
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: catthehacker/ubuntu:act-22.04
|
||||||
|
steps:
|
||||||
|
- uses: RouxAntoine/checkout@v3.5.4
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2.9.1
|
||||||
|
with:
|
||||||
|
config-inline: |
|
||||||
|
[registry."docker.registry:5000"]
|
||||||
|
http = true
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
env:
|
||||||
|
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ env.REGISTRY_NAME }}/keepalived-k8s:latest
|
||||||
|
platforms: |
|
||||||
|
linux/arm64
|
||||||
|
linux/amd64
|
Loading…
x
Reference in New Issue
Block a user