Skip to content

Commit 200f693

Browse files
committed
fix(workflow): add bake-target for API and Web in Docker metadata action
1 parent 90b4fe8 commit 200f693

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/docker-prod-image.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: docker/metadata-action@v5
2525
with:
2626
images: line/abc-user-feedback-api
27+
bake-target: api
2728
tags: |
2829
type=ref,event=branch
2930
type=ref,event=tag
@@ -34,6 +35,7 @@ jobs:
3435
uses: docker/metadata-action@v5
3536
with:
3637
images: line/abc-user-feedback-web
38+
bake-target: web
3739
tags: |
3840
type=ref,event=branch
3941
type=ref,event=tag
@@ -51,7 +53,6 @@ jobs:
5153
with:
5254
files: |
5355
./docker/docker-bake.hcl
56+
cwd://${{ steps.api-meta.outputs.bake-file }}
57+
cwd://${{ steps.web-meta.outputs.bake-file }}
5458
push: true
55-
set: |
56-
api.tags=${{ join(fromJson(steps.api-meta.outputs.json).tags, ',') }}
57-
web.tags=${{ join(fromJson(steps.web-meta.outputs.json).tags, ',') }}

0 commit comments

Comments
 (0)