Add variables

This commit is contained in:
drymer 2018-12-07 00:41:09 +01:00
parent 6ab9143d7f
commit d9a91d2fe5
Signed by: drymer
GPG Key ID: A307D64D5DDFDAAD
1 changed files with 4 additions and 3 deletions

View File

@ -5,9 +5,10 @@ pipeline:
build-docker:
image: docker
commands:
- docker build -t r.daemons.it/baddaemons .
- docker push r.daemons.it/baddaemons
secrets: [docker_user, docker_password]
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY
- docker build -t $DOCKER_REGISTRY .
- docker push $DOCKER_REGISTRY/baddaemons
secrets: [docker_user, docker_password, docker_registry]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when: