From 5a7543e418aa2dc57b75e85581eae30820a8c9ae Mon Sep 17 00:00:00 2001 From: Damjan Smickovski <32773226+smickovskid@users.noreply.github.com> Date: Mon, 30 Sep 2024 12:53:29 +0200 Subject: [PATCH] Added context arg to action (#199) --- docker/build-push/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/build-push/action.yml b/docker/build-push/action.yml index f81a453..6ae7a2b 100644 --- a/docker/build-push/action.yml +++ b/docker/build-push/action.yml @@ -1,6 +1,10 @@ name: Build Docker Image and push to ECR description: Common docker image builder for building chainlink docker images inputs: + context: + required: false + default: "." + description: The context of the docker build tags: required: true description: The full docker tag list to use for the push to ecr, new line separated @@ -42,7 +46,7 @@ runs: uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0 id: build-image with: - context: . + context: ${{ inputs.context }} file: ${{ inputs.file }} build-args: ${{ inputs.build-args }} tags: ${{ inputs.tags }}