Skip to content

Commit 47714b0

Browse files
committed
feat(docker-build): add context input for Docker build
1 parent 0e5e257 commit 47714b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docker-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ on:
2727
description: 'Push Docker Image to Registry'
2828
default: false
2929
type: boolean
30+
context:
31+
description: 'Path to Docker Build Context'
32+
default: '.'
33+
type: string
3034
registry:
3135
description: 'Docker Registry'
3236
default: 'docker.io'
@@ -70,7 +74,7 @@ jobs:
7074
if: ${{ inputs.push }}
7175
uses: docker/build-push-action@v6
7276
with:
73-
context: .
77+
context: ${{ inputs.context }}
7478
file: ${{ inputs.dockerfile }}
7579
platforms: linux/amd64,linux/arm64
7680
push: ${{ inputs.push }}

0 commit comments

Comments
 (0)