fizika/.forgejo/workflows/docker-publish.yml
Andras Schmelczer 90f5454edf
Some checks failed
Deploy to Pages / deploy (pull_request) Successful in 4s
Build and Publish Docker Image / build-and-push (pull_request) Failing after 15s
Use shared ci-actions for docker publish and pages deploy
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 14:45:54 +01:00

25 lines
611 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: /fizika-admin
push: ${{ github.event_name != 'pull_request' }}
token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}