2026-05-06 08:07:33 -05:00
|
|
|
name: Cascade FROM bump
|
|
|
|
|
description: |
|
|
|
|
|
Bump a `FROM <image>:<tag>` line in a target repo's Dockerfile to trigger that
|
|
|
|
|
repo's CI. Used when a base image rebuild needs to cascade rebuilds in
|
|
|
|
|
downstream image repos.
|
|
|
|
|
inputs:
|
|
|
|
|
target-repo:
|
|
|
|
|
description: Target repo to edit (e.g. fritzlab/runner)
|
|
|
|
|
required: true
|
|
|
|
|
image:
|
|
|
|
|
description: Image referenced in the target file's FROM line (e.g. code.fritzlab.net/fritzlab/base)
|
|
|
|
|
required: true
|
|
|
|
|
tag:
|
|
|
|
|
description: New tag. Defaults to github.run_number when empty.
|
|
|
|
|
required: false
|
|
|
|
|
default: ''
|
|
|
|
|
file:
|
|
|
|
|
description: File path inside target-repo to edit
|
|
|
|
|
required: false
|
|
|
|
|
default: Dockerfile
|
|
|
|
|
token:
|
|
|
|
|
description: CI_BOT_TOKEN with write access to target-repo
|
|
|
|
|
required: true
|
|
|
|
|
host:
|
|
|
|
|
description: Gitea host (without protocol)
|
|
|
|
|
required: false
|
|
|
|
|
default: code.fritzlab.net
|
|
|
|
|
message:
|
|
|
|
|
description: Commit message override. Defaults to "bump <image> to #<tag>".
|
|
|
|
|
required: false
|
|
|
|
|
default: ''
|
|
|
|
|
runs:
|
|
|
|
|
using: composite
|
|
|
|
|
steps:
|
2026-11-10 11:33:13 -06:00
|
|
|
- name: Clone, edit, push (or open a pull request)
|
2026-05-06 08:07:33 -05:00
|
|
|
shell: bash
|
|
|
|
|
env:
|
|
|
|
|
TARGET_REPO: ${{ inputs.target-repo }}
|
|
|
|
|
IMAGE: ${{ inputs.image }}
|
|
|
|
|
TAG_INPUT: ${{ inputs.tag }}
|
|
|
|
|
FILE: ${{ inputs.file }}
|
|
|
|
|
TOKEN: ${{ inputs.token }}
|
|
|
|
|
HOST: ${{ inputs.host }}
|
|
|
|
|
MESSAGE: ${{ inputs.message }}
|
|
|
|
|
RUN_NUMBER: ${{ github.run_number }}
|
2026-11-10 11:33:13 -06:00
|
|
|
run: bash "${{ github.action_path }}/cascade.sh"
|