Commit 5f9fa5b0 authored by jonas's avatar jonas

Allow dynamic container dirs

parent e36cab2a
.docker: &docker
.docker:
stage: docker
image: docker:18
services:
......@@ -6,6 +6,7 @@
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
CONTAINER_DIR: .
before_script:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
script:
......@@ -14,6 +15,6 @@
--cache-from $CI_REGISTRY_IMAGE:latest
--tag $CONTAINER_IMAGE:$CI_COMMIT_SHORT_SHA
--tag $CONTAINER_IMAGE:latest
.
$CONTAINER_DIR
- docker push $CONTAINER_IMAGE:$CI_COMMIT_SHORT_SHA
- docker push $CONTAINER_IMAGE:latest
Markdown is supported
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