Files
DataMate/.github/workflows/docker-image-backend.yml
Dallas98 c998de2e9d 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'
2025-10-22 23:44:44 +08:00

28 lines
620 B
YAML

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