From 1a37d6bfb8a3b1089e4637979c2f6738fcbc0f77 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Mon, 14 Oct 2019 08:59:41 +0200 Subject: [PATCH] docker tag --- .travis.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 78c43a9..899cb63 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ matrix: include: - - language: go + - stage: test + language: go sudo: false go: - 1.11.x @@ -12,8 +13,10 @@ matrix: - env GO111MODULE=on go build - env GO111MODULE=on go test ./... - - language: ruby + - stage: dockerhub push + language: ruby services: - docker - before_install: - - docker build -t buckaroobanzay/mapserver . + script: + - docker build -t buckaroobanzay/mapserver:latest . + - docker tag buckaroobanzay/mapserver:latest buckaroobanzay/mapserver:$TRAVIS_TAG