Publish docker
All checks were successful
Publish documentation to great-ai.schmelczer.dev / publish (push) Successful in 1m3s
Check / Lint, format & type checks (push) Successful in 1m35s
Check / Test on Python 3.12 (push) Successful in 2m0s
Check / Test on Python 3.13 (push) Successful in 1m58s
Check / Notebooks on Python 3.12 (push) Successful in 6m29s
Check / Notebooks on Python 3.13 (push) Successful in 6m6s

This commit is contained in:
Andras Schmelczer 2026-10-28 23:16:43 +00:00
commit b08bc3b8ae

View file

@ -1,10 +1,13 @@
name: Publish on DockerHub
name: Publish container image on Forgejo
on:
push:
tags: ['*']
tags: ["*"]
workflow_dispatch:
env:
REGISTRY: git.schmelczer.dev
jobs:
publish:
runs-on: docker
@ -35,17 +38,25 @@ jobs:
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- name: Log in to Docker Hub
- name: Log in to the Forgejo container registry
uses: https://github.com/docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKER_PACKAGE_TOKEN }}
- name: Extract metadata for the Docker image
id: meta
uses: https://github.com/docker/metadata-action@v5
with:
images: schmelczera/great-ai
images: ${{ env.REGISTRY }}/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
labels: |
org.opencontainers.image.source=https://git.schmelczer.dev/${{ github.repository }}
- name: Build and push
uses: https://github.com/docker/build-push-action@v6