Replace inline publish step(s) with the canonical shell-only composite actions in andras/ci-actions. Switches the publish jobs to the registered 'docker' runner. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
26 lines
620 B
YAML
26 lines
620 B
YAML
name: Publish server Docker image
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
tags: ["*"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
publish-docker:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Build and publish server image
|
|
uses: http://forgejo:3000/andras/ci-actions/docker-publish@main
|
|
with:
|
|
context: sync-server
|
|
# Push only on tags (matches the previous workflow's behaviour).
|
|
push: ${{ github.ref_type == 'tag' }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|