'.drone.yml' ändern
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
a9b045acef
commit
97bce1d56e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue