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

@@ -2,13 +2,13 @@ name: Frontend Docker Image CI
on:
push:
branches: [ "develop_930" ]
branches: [ "main" ]
paths:
- 'frontend/**'
- 'scripts/images/frontend/**'
- '.github/workflows/docker-image-frontend.yml'
pull_request:
branches: [ "develop_930" ]
branches: [ "main" ]
paths:
- 'frontend/**'
- 'scripts/images/frontend/**'
@@ -16,12 +16,12 @@ on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Frontend Docker image
run: make build-frontend
call-docker-build:
name: Build and Push Frontend Docker Image
uses: ./.github/workflows/docker-images-reusable.yml
permissions:
contents: read
packages: write
with:
service_name: frontend
build_dir: .