Skip to content

Commit 92ee9cf

Browse files
committed
chore: target을 옵셔널 변수로 처리
1 parent 16e5849 commit 92ee9cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-push.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ on:
1111
image-tag:
1212
required: true
1313
type: string
14-
14+
target:
15+
required: false
16+
type: string
1517

1618
jobs:
1719
build-push:
@@ -39,7 +41,7 @@ jobs:
3941
context: .
4042
push: true
4143
tags: ${{ inputs.ecr-registry }}/${{ inputs.ecr-repository }}:${{ inputs.image-tag }}
42-
target: prod
44+
target: ${{ inputs.target || '' }}
4345
cache-from: type=gha
4446
cache-to: type=gha,mode=max
4547
secrets: |

0 commit comments

Comments
 (0)