Skip to content

Commit ec0c504

Browse files
authored
add build-contexts in docker-build-push (#1623)
1 parent 9ae0031 commit ec0c504

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/_docker-build-push.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ on:
2222
dockerfile-path:
2323
required: false
2424
type: string
25+
build-contexts:
26+
description: 'Override Docker build contexts; newline-separated name=path (default: proto=proto)'
27+
required: false
28+
type: string
29+
default: 'proto=proto'
2530
secrets:
2631
ARM_RUNNER_HOSTNAME:
2732
required: true
@@ -93,8 +98,7 @@ jobs:
9398
with:
9499
context: ${{ inputs.docker-context-path || format('{0}/', inputs.service-name) }}
95100
file: ${{ inputs.dockerfile-path || format('{0}/Dockerfile', inputs.service-name) }}
96-
build-contexts: |
97-
proto=proto
101+
build-contexts: ${{ inputs.build-contexts }}
98102
push: ${{ steps.tags_extractor.outputs.tags != '' }}
99103
tags: ${{ steps.tags_extractor.outputs.tags }}
100104
platforms: |

0 commit comments

Comments
 (0)