Skip to content
Snippets Groups Projects
Commit 0f77af7a authored by Andri Joos's avatar Andri Joos :blush:
Browse files

add build args handling

parent f04dae44
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,6 @@ variables:
- ${DOCKER_LOGIN_CMD}
- ${DOCKER_PREPARE_CMD}
- ${DOCKER_BUILDX_CREATE_CMD}
- docker buildx build ${IMAGE_PATH} $(echo ${IMAGE_NAME} | awk -F',' '{for (i=1; i<=NF; i++) printf "--tag %s ", $i}') --platform ${DOCKER_BUILDX_PLATFORMS} --builder ${DOCKER_BUILDX_CONTEXT_NAME} --push
- docker buildx build ${IMAGE_PATH} $(echo ${IMAGE_NAME} | awk -F',' '{for (i=1; i<=NF; i++) printf "--tag %s ", $i}') $(echo ${BUILD_ARGS} | awk -F',' '{for (i=1; i<=NF; i++) printf "--build-arg %s ", $i}') --platform ${DOCKER_BUILDX_PLATFORMS} --builder ${DOCKER_BUILDX_CONTEXT_NAME} --push
- ${DOCKER_BUILDX_DELETE_CMD}
- ${DOCKER_LOGOUT_CMD}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment