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>
27 lines
685 B
YAML
27 lines
685 B
YAML
name: Build and publish Docker image
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
tags: ["v*"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build and publish main image
|
|
uses: http://forgejo:3000/andras/ci-actions/docker-publish@main
|
|
with:
|
|
context: .
|
|
token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}
|
|
|
|
- name: Build and publish screenshot image
|
|
uses: http://forgejo:3000/andras/ci-actions/docker-publish@main
|
|
with:
|
|
context: ./screenshot
|
|
image-suffix: -screenshot
|
|
token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}
|