'.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)
|
- BUILDDATE=$(date)
|
||||||
- BRANCH=$DRONE_COMMIT_BRANCH
|
- BRANCH=$DRONE_COMMIT_BRANCH
|
||||||
- VERSIONGO=version.go
|
- VERSIONGO=version.go
|
||||||
|
- TAGS=.tags
|
||||||
- echo "Building image $IMAGE:$BRANCH-$REV"
|
- echo "Building image $IMAGE:$BRANCH-$REV"
|
||||||
- echo "package main" >$VERSIONGO
|
- echo "package main" >$VERSIONGO
|
||||||
- echo "" >>$VERSIONGO
|
- echo "" >>$VERSIONGO
|
||||||
|
@ -22,14 +23,13 @@
|
||||||
- echo -n "$BUILDDATE" >>$VERSIONGO
|
- echo -n "$BUILDDATE" >>$VERSIONGO
|
||||||
- echo "\"" >>$VERSIONGO
|
- echo "\"" >>$VERSIONGO
|
||||||
- echo ")" >>$VERSIONGO
|
- echo ")" >>$VERSIONGO
|
||||||
- cat version.go
|
- cat $VERSIONGO
|
||||||
|
- echo -n "$BRANCH-$REV" >$TAGS
|
||||||
|
- cat $TAGS
|
||||||
build_docker:
|
build_docker:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
environment:
|
|
||||||
- REV=$DRONE_COMMIT_BRANCH-$(git rev-list HEAD --count)
|
|
||||||
repo: dr.dnix.de/${DRONE_REPO_NAME}
|
repo: dr.dnix.de/${DRONE_REPO_NAME}
|
||||||
tags:
|
tags:
|
||||||
- $DRONE_COMMIT_BRANCH-$(git rev-list HEAD --count)
|
|
||||||
- latest
|
- latest
|
||||||
deploy:
|
deploy:
|
||||||
image: ubuntu:16.04
|
image: ubuntu:16.04
|
||||||
|
|
Loading…
Reference in New Issue