Add Docker support with Dockerfile and entrypoint
Some checks are pending
Docker / build (push) Waiting to run

This commit is contained in:
krek0 2026-05-02 14:31:39 +02:00
parent faf880a236
commit 8dd3c8701c
8 changed files with 118 additions and 2 deletions

View file

@ -0,0 +1,44 @@
name: Docker
on:
push:
branches:
- master
tags:
- 'v*'
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v3
- name: Log in to Codeberg registry
if: startsWith(github.ref, 'refs/tags/')
uses: docker/login-action@v3
with:
registry: codeberg.org
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Extract version tag
if: startsWith(github.ref, 'refs/tags/')
id: meta
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Build (verify only, no push)
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v5
with:
context: .
push: false
- name: Build and push (tagged release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
codeberg.org/${{ github.repository }}:${{ steps.meta.outputs.tag }}
codeberg.org/${{ github.repository }}:latest