From b813b8df9ed8d279f3083ac855b7ed396264f39c Mon Sep 17 00:00:00 2001 From: Swann Date: Fri, 2 Oct 2020 23:32:06 +0200 Subject: [PATCH] feat: docker build and push --- .gitlab/ci/deploy.gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab/ci/deploy.gitlab-ci.yml b/.gitlab/ci/deploy.gitlab-ci.yml index 679df9d..e99d7ad 100644 --- a/.gitlab/ci/deploy.gitlab-ci.yml +++ b/.gitlab/ci/deploy.gitlab-ci.yml @@ -3,3 +3,7 @@ deploy: image: slumber/docker-python script: - VERSION="$(python scripts/get_replication_version.py)" + - echo "Building docker image with version ${VERSION}" + - docker build --no-cache --build-arg version=${VERSION} -t registry.gitlab.com/slumber/multi-user/multi-user-server:0.1.0 ./docker_server + - echo "Pushing to gitlab registry ${VERSION}" + - docker push registry.gitlab.com/slumber/multi-user/multi-user-server:0.1.0