'.drone.yml' ändern
the build was successful Details

This commit is contained in:
an 2018-02-22 22:35:24 +00:00
parent a9b045acef
commit 97bce1d56e
1 changed files with 4 additions and 4 deletions

View File

@ -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