add workflow
Some checks failed
Build and Publish Docker Image / docker (push) Failing after 2m7s

This commit is contained in:
ebner 2025-03-25 11:39:19 +01:00
parent a07b8856d9
commit 98a4b1da09

View File

@ -0,0 +1,32 @@
name: Build and Publish Docker Image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show environment variables
run: |
set
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: gitea.psi.ch
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: gitea.psi.ch/${{ github.repository }}:latest