fizika/.forgejo/workflows/docker-publish.yml
Andras Schmelczer 2bf2fc37eb
All checks were successful
Deploy to Pages / deploy (push) Successful in 8s
Build and Publish Docker Image / build-and-push (push) Successful in 15s
Flatten admin image name to andras/fizika-admin
A nested name (andras/fizika/fizika-admin) contains a slash, which Forgejo's
package web UI can't render (the detail page 404s though pulls work). Use a
flat name to match the andras/<image> convention.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 15:28:50 +01:00

25 lines
604 B
YAML

name: Build and Publish Docker Image
on:
push:
branches: ['main']
tags: ['v*']
pull_request:
branches: ['main']
workflow_dispatch:
jobs:
build-and-push:
runs-on: docker
steps:
- name: Checkout repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: Build and publish admin image
uses: http://forgejo:3000/andras/ci-actions/docker-publish@main
with:
context: ./backend
image-suffix: -admin
push: ${{ github.event_name != 'pull_request' }}
token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}