Replace the inline publish step(s) with the canonical shell-only composite actions in andras/ci-actions (deploy-pages / docker-publish / forgejo-release). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
506 B
YAML
22 lines
506 B
YAML
name: Docker
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
tags: [ 'v*.*.*' ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: https://code.forgejo.org/actions/checkout@v4
|
|
|
|
- name: Build and publish image
|
|
uses: http://forgejo:3000/andras/ci-actions/docker-publish@main
|
|
with:
|
|
context: .
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
token: ${{ secrets.FORGEJO_TOKEN }}
|