Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Set Gitlab CI variables for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
htdvisser committed Aug 13, 2019
1 parent 02dd4c7 commit 9418424
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ gitlab-image:
image: docker:git
services:
- "docker:dind"
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: /certs
script:
- docker build -t ttn .
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" registry.gitlab.com
Expand All @@ -83,6 +86,9 @@ dockerhub-image:
image: docker:git
services:
- "docker:dind"
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: /certs
script:
- docker build -t ttn .
- docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_PASSWORD"
Expand Down

0 comments on commit 9418424

Please sign in to comment.