Draft: Allow docker build context to be configured with CI variable
We are using auto-build-image for a matrix job that builds multiple images. This change allows configuring the docker build context so a sensible directory structure can be achieved when building multiple images.
build:
image: rjferguson21/auto-build-image:buildcontext
parallel:
matrix:
- DOCKERFILE_PATH: images/myapi/Dockerfile
DOCKER_BUILD_CONTEXT: images/myapi
CI_APPLICATION_REPOSITORY: $CI_REGISTRY_IMAGE/myapi/$CI_COMMIT_REF_SLUG
Edited by Rob Ferguson