2023-11-08 22:45:05 +01:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-11-08 22:50:13 +01:00
|
|
|
- "master"
|
2023-11-08 22:45:05 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
services:
|
|
|
|
registry:
|
|
|
|
image: registry:2
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-11-08 23:06:43 +01:00
|
|
|
uses: actions/checkout@v4
|
2023-11-09 18:48:57 +01:00
|
|
|
- name: Setup Docker for QEMU
|
|
|
|
uses: https://github.com/papodaca/install-docker-action@main
|
2023-11-08 22:45:05 +01:00
|
|
|
- name: Set up QEMU
|
2023-11-09 18:40:47 +01:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2023-11-08 22:45:05 +01:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Log in to the Container registry
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: gitea.pimux.de
|
|
|
|
username: ${{ secrets.MY_GITEA_USERNAME }}
|
|
|
|
password: ${{ secrets.MY_GITEA_TOKEN }}
|
|
|
|
- name: Build and push to local registry
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
2023-11-09 18:56:06 +01:00
|
|
|
platforms: linux/amd64,linux/arm64
|
2023-11-08 22:45:05 +01:00
|
|
|
tags: gitea.pimux.de/finn/reminder:latest
|
|
|
|
- name: Inspect
|
|
|
|
run: |
|
|
|
|
docker buildx imagetools inspect gitea.pimux.de/finn/reminder:latest
|