feat: docker build and push

This commit is contained in:
Swann 2020-10-02 23:32:06 +02:00
parent d0e966ff1a
commit b813b8df9e
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

View File

@ -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