feat: enable build and deploy for only master and develop

This commit is contained in:
Swann 2020-10-12 21:01:54 +02:00
parent 530fae8cb4
commit 187f11071c
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB
3 changed files with 12 additions and 3 deletions

View File

@ -6,4 +6,8 @@ build:
artifacts:
name: multi_user
paths:
- multi_user
- multi_user
only:
refs:
- master
- develop

View File

@ -15,4 +15,9 @@ deploy:
- docker build --build-arg replication_version=${RP_VERSION} --build-arg version={VERSION} -t registry.gitlab.com/slumber/multi-user/multi-user-server:${VERSION} ./scripts/docker_server
- echo "Pushing to gitlab registry ${VERSION}"
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push registry.gitlab.com/slumber/multi-user/multi-user-server:${VERSION}
- docker push registry.gitlab.com/slumber/multi-user/multi-user-server:${VERSION}
only:
refs:
- master
- develop

View File

@ -1,7 +1,7 @@
# Download base image debian jessie
FROM python:slim
ARG replication_version=0.0.21a21
ARG replication_version=0.0.21
ARG version=0.1.1
# Infos