From 1394e597419d15bb61ec5b61bb227455555f518e Mon Sep 17 00:00:00 2001 From: an Date: Thu, 22 Feb 2018 18:29:28 +0000 Subject: [PATCH] =?UTF-8?q?'.drone.yml'=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2945e1e..ae9034a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,12 +2,11 @@ pipeline: build: image: golang:1.9 environment: - - FOO=2 + - IMAGE=dr.dnix.de/$DRONE_REPO_NAME commands: - REV=$(git rev-list HEAD --count) - BUILDDATE=$(date) - BRANCH=$DRONE_COMMIT_BRANCH - - IMAGE=dr.dnix.de/$DRONE_REPO_NAME - VERSIONGO=version.go - echo "Building image $IMAGE:$BRANCH-$REV" - echo "package main" >$VERSIONGO @@ -26,4 +25,11 @@ pipeline: - cat version.go - go get -d ./... - go build + publish: + image: plugins/docker + environment: + - IMAGE=dr.dnix.de/$DRONE_REPO_NAME + - REV=$(git rev-list HEAD --count) + repo: $IMAGE + tags: [ $REV, latest ] \ No newline at end of file