From 0931630f8bf3f439aec713ad59ba2676fd63e78e Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Wed, 13 Feb 2019 10:13:15 +1100
Subject: [PATCH] use dockerhub in pipeline

---
 .gitlab-ci.yml | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1a10adc..fab2887 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,18 +4,16 @@ stages:
 
 build:
   image: docker:stable
-
   variables:
     DOCKER_HOST: tcp://docker:2375/
     DOCKER_DRIVER: overlay2
-
   services:
     - docker:dind
-
   stage: build
   script:
+    - docker login -u $DOCKERHUBUSER -p $DOCHERHUBPASSWORD hub.docker.com
     - docker build --tag=tes .
-    - docker save tes:latest > tes.tar.gz
+    - docker push l1ll1/tes:latest
   artifacts:
     paths:
       - tes.tar.gz
-- 
GitLab