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>
27 lines
622 B
YAML
27 lines
622 B
YAML
name: Publish CLI
|
|
|
|
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 CLI image
|
|
uses: http://forgejo:3000/andras/ci-actions/docker-publish@main
|
|
with:
|
|
context: frontend
|
|
dockerfile: frontend/local-client-cli/Dockerfile
|
|
image-suffix: -cli
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|