refactor: update Docker workflows to use reusable configuration and restrict branch triggers to 'main' (#15)

* refactor: update Docker workflows to use reusable configuration and restrict branch triggers to 'main'
This commit is contained in:
Dallas98
2025-10-22 23:44:44 +08:00
committed by GitHub
parent 31ef8bc265
commit c998de2e9d
5 changed files with 107 additions and 24 deletions

View File

@@ -0,0 +1,27 @@
name: Runtime Docker Image CI
on:
push:
branches: [ "main" ]
paths:
- 'runtime/**'
- 'scripts/images/runtime/**'
- '.github/workflows/docker-image-runtime.yml'
pull_request:
branches: [ "main" ]
paths:
- 'runtime/**'
- 'scripts/images/runtime/**'
- '.github/workflows/docker-image-runtime.yml'
workflow_dispatch:
jobs:
call-docker-build:
name: Build and Push Runtime Docker Image
uses: ./.github/workflows/docker-images-reusable.yml
permissions:
contents: read
packages: write
with:
service_name: runtime
build_dir: .