2023-08-19 16:15:53 +00:00
|
|
|
name: Main
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
env:
|
|
|
|
REGISTRY_NAME: container.localdomain: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
|
2023-10-21 19:14:23 +00:00
|
|
|
uses: docker/setup-buildx-action@v3.0.0
|
2023-08-19 16:15:53 +00:00
|
|
|
with:
|
|
|
|
config-inline: |
|
|
|
|
[registry."${{ env.REGISTRY_NAME }}"]
|
|
|
|
http = true
|
|
|
|
|
|
|
|
- name: Build and push
|
2023-10-21 16:38:56 +00:00
|
|
|
uses: docker/build-push-action@v5
|
2023-08-19 16:15:53 +00:00
|
|
|
env:
|
|
|
|
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
tags: ${{ env.REGISTRY_NAME }}/postgres:latest
|
|
|
|
platforms: |
|
|
|
|
linux/arm/v6
|
|
|
|
linux/amd64
|
2023-10-21 18:53:29 +00:00
|
|
|
linux/arm64
|