initial commit, but the application might be already complete ;-)

This commit is contained in:
Jan Novak
2026-01-08 15:31:28 +01:00
commit f068a6b4e8
7 changed files with 307 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
name: Build and Push
on:
workflow_dispatch:
inputs:
tag:
description: 'Image tag'
required: true
default: 'latest'
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Login to Gitea registry
- name: Build and push
run: |
TAG=${{ github.ref_name }}
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
TAG=${{ inputs.tag }}
fi
IMAGE=gitea.home.hrajfrisbee.cz/${{ github.repository }}:$TAG
docker build -t $IMAGE .
docker push $IMAGE