17 lines
607 B
YAML
17 lines
607 B
YAML
deploy:
|
|
stage: deploy
|
|
image: slumber/docker-python
|
|
services:
|
|
- docker:19.03.12-dind
|
|
|
|
before_script:
|
|
- docker info
|
|
- docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
|
|
|
|
script:
|
|
- VERSION="$(python scripts/get_replication_version.py)"
|
|
- echo "Building docker image with version ${VERSION}"
|
|
- docker build --build-arg version=${VERSION} -t registry.gitlab.com/slumber/multi-user/multi-user-server:0.1.0 ./scripts/docker_server
|
|
- echo "Pushing to gitlab registry ${VERSION}"
|
|
- docker push registry.gitlab.com/slumber/multi-user/multi-user-server:0.1.0
|