From 46b7d588fcefa278ad65d72b17d220d9f9d0ca4a Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Thu, 3 Aug 2023 15:44:08 +0200 Subject: [PATCH] feat: use build-args --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e57735c..022b33e 100644 --- a/action.yml +++ b/action.yml @@ -65,7 +65,8 @@ runs: GITHUB_SERVER_URL: ${{ inputs.github-server-url }} DOCKER_REGISTRY_URL: ${{ inputs.docker-registry-url }} DOCKER_BUILDKIT: '0' # Using remote git context with buildkit does not support referencing merge commits via SHA - run: docker build -t ${DOCKER_REGISTRY_URL#http*://}/$IMAGE:$TAG -f $DOCKERFILE $GITHUB_SERVER_URL/$REPOSITORY.git#$REF + BUILD_ARGS: ${{ inputs.build-args }} + run: docker build -t ${DOCKER_REGISTRY_URL#http*://}/$IMAGE:$TAG -f $DOCKERFILE ${BUILD_ARGS} $GITHUB_SERVER_URL/$REPOSITORY.git#$REF shell: bash - id: run env: