docker-postgres/.github/workflows/main.yaml

52 lines
1.2 KiB
YAML
Raw Normal View History

name: Main
on:
push:
branches:
2024-09-06 22:20:33 +00:00
- main
- master
env:
REGISTRY_NAME: container.localdomain
jobs:
build:
2024-09-06 22:20:33 +00:00
if: "contains(github.event.head_commit.message, vars.SKIP_CI_PREFIX) != true"
runs-on: docker
container:
image: catthehacker/ubuntu:act-22.04
steps:
- uses: RouxAntoine/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.6.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 }}/postgres:latest
platforms: |
linux/arm/v6
linux/amd64
linux/arm64
- uses: RouxAntoine/auto-changie@v1.0.1
- name: Push changelog
uses: stefanzweifel/git-auto-commit-action@v5
with:
2024-09-06 22:20:33 +00:00
commit_message: "${{ vars.SKIP_CI_PREFIX }} Push updated changelog"