adding workflow to create container image on new version
Docker Publish / build-and-push (push) Has been cancelled

This commit is contained in:
Florian Walther
2026-05-01 18:50:04 +02:00
parent e03a674222
commit 5befbc1efb
+29
View File
@@ -0,0 +1,29 @@
name: Docker Publish
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build-and-push:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@main
- name: Set up Docker Buildx
run: |
docker buildx create --use
- name: Login to Gitea Container Registry
run: |
echo "${{ secrets.GITEA_TOKEN }}" | docker login -u "${{ env.ACTOR }}" --password-stdin gitea.scu.si
- name: Build and push
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--push \
-t gitea.scu.si/${{ env.REPOSITORY }}/mdhost:latest \
-t gitea.scu.si/${{ env.REPOSITORY }}/mdhost:${{ env.REF_NAME }} \
.