2023-10-16 20:17:12 +02:00
|
|
|
name: Publish Docker image
|
|
|
|
|
2024-01-21 17:51:13 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
2023-10-16 20:17:12 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
push_to_registry:
|
2024-01-21 17:51:13 +01:00
|
|
|
name: Push Docker image to Docker registry
|
2023-10-16 20:17:12 +02:00
|
|
|
runs-on: ubuntu-latest
|
2024-01-21 17:52:20 +01:00
|
|
|
container:
|
|
|
|
image: catthehacker/ubuntu:act-latest
|
2024-01-21 17:06:06 +01:00
|
|
|
env:
|
|
|
|
RUNNER_TOOL_CACHE: /toolcache
|
2024-01-21 17:51:13 +01:00
|
|
|
|
2023-10-16 20:17:12 +02:00
|
|
|
steps:
|
2024-01-21 17:51:13 +01:00
|
|
|
- name: Checkout
|
2023-10-16 20:17:12 +02:00
|
|
|
uses: actions/checkout@v3
|
2024-01-21 17:51:13 +01:00
|
|
|
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
- name: Log in to Docker registry
|
|
|
|
uses: docker/login-action@v2
|
2023-10-16 20:17:12 +02:00
|
|
|
with:
|
2024-01-21 18:25:36 +01:00
|
|
|
registry: git.depeuter.dev
|
2023-10-16 20:23:49 +02:00
|
|
|
username: ${{ gitea.actor }}
|
2023-10-16 20:17:12 +02:00
|
|
|
password: ${{ secrets.APP_TOKEN }}
|
2024-01-21 17:51:13 +01:00
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v4
|
2023-10-16 20:17:12 +02:00
|
|
|
with:
|
2024-01-21 17:51:13 +01:00
|
|
|
platforms: linux/amd64,linux/arm64
|
2023-10-16 20:17:12 +02:00
|
|
|
push: true
|
2024-01-21 17:59:36 +01:00
|
|
|
tags: latest
|