From 97bce1d56e3df3b207a0564f9a45b6e5562b751f Mon Sep 17 00:00:00 2001 From: an Date: Thu, 22 Feb 2018 22:35:24 +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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index e49df6b..de7c8bb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,7 @@ - BUILDDATE=$(date) - BRANCH=$DRONE_COMMIT_BRANCH - VERSIONGO=version.go + - TAGS=.tags - echo "Building image $IMAGE:$BRANCH-$REV" - echo "package main" >$VERSIONGO - echo "" >>$VERSIONGO @@ -22,14 +23,13 @@ - echo -n "$BUILDDATE" >>$VERSIONGO - echo "\"" >>$VERSIONGO - echo ")" >>$VERSIONGO - - cat version.go + - cat $VERSIONGO + - echo -n "$BRANCH-$REV" >$TAGS + - cat $TAGS build_docker: image: plugins/docker - environment: - - REV=$DRONE_COMMIT_BRANCH-$(git rev-list HEAD --count) repo: dr.dnix.de/${DRONE_REPO_NAME} tags: - - $DRONE_COMMIT_BRANCH-$(git rev-list HEAD --count) - latest deploy: image: ubuntu:16.04