'.drone.yml' ändern
the build failed
Details
the build failed
Details
This commit is contained in:
parent
191d94385b
commit
40a7a49e4b
68
.drone.yml
68
.drone.yml
|
@ -1,30 +1,38 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
prebuild:
|
||||||
image: plugins/docker
|
image: golang:1.9
|
||||||
commands:
|
environment:
|
||||||
- REV=$(git rev-list HEAD --count)
|
- IMAGE=dr.dnix.de/$DRONE_REPO_NAME
|
||||||
- BUILDDATE=$(date)
|
commands:
|
||||||
- BRANCH=$DRONE_COMMIT_BRANCH
|
- REV=$(git rev-list HEAD --count)
|
||||||
- VERSIONGO=version.go
|
- BUILDDATE=$(date)
|
||||||
- echo "Building image $IMAGE:$BRANCH-$REV"
|
- BRANCH=$DRONE_COMMIT_BRANCH
|
||||||
- echo "package main" >$VERSIONGO
|
- VERSIONGO=version.go
|
||||||
- echo "" >>$VERSIONGO
|
- echo "Building image $IMAGE:$BRANCH-$REV"
|
||||||
- echo "const (" >>$VERSIONGO
|
- echo "package main" >$VERSIONGO
|
||||||
- echo -n " FlokatiVersion = \"" >>$VERSIONGO
|
- echo "" >>$VERSIONGO
|
||||||
- echo -n "$BRANCH" >>$VERSIONGO
|
- echo "const (" >>$VERSIONGO
|
||||||
- echo "\"" >>$VERSIONGO
|
- echo -n " FlokatiVersion = \"" >>$VERSIONGO
|
||||||
- echo -n " FlokatiBuild = \"" >>$VERSIONGO
|
- echo -n "$BRANCH" >>$VERSIONGO
|
||||||
- echo -n "$REV" >>$VERSIONGO
|
- echo "\"" >>$VERSIONGO
|
||||||
- echo "\"" >>$VERSIONGO
|
- echo -n " FlokatiBuild = \"" >>$VERSIONGO
|
||||||
- echo -n " FlokatiBuilddate = \"" >>$VERSIONGO
|
- echo -n "$REV" >>$VERSIONGO
|
||||||
- echo -n "$BUILDDATE" >>$VERSIONGO
|
- echo "\"" >>$VERSIONGO
|
||||||
- echo "\"" >>$VERSIONGO
|
- echo -n " FlokatiBuilddate = \"" >>$VERSIONGO
|
||||||
- echo ")" >>$VERSIONGO
|
- echo -n "$BUILDDATE" >>$VERSIONGO
|
||||||
- cat version.go
|
- echo "\"" >>$VERSIONGO
|
||||||
- docker build -t dr.dnix.de/mmflokati:${DRONE_COMMIT_BRANCH}-${REV} .
|
- echo ")" >>$VERSIONGO
|
||||||
- docker push dr.dnix.de/mmflokati:${DRONE_COMMIT_BRANCH}-${REV}
|
- cat version.go
|
||||||
deploy:
|
build_docker:
|
||||||
image: ubuntu:16.04
|
image: plugins/docker
|
||||||
commands:
|
environment:
|
||||||
- echo "foo"
|
commands:
|
||||||
|
- REV=$(git rev-list HEAD --count)
|
||||||
|
- docker build -t dr.dnix.de/mmflokati:latest
|
||||||
|
- docker tag dr.dnix.de/mmflokati:latest dr.dnix.de/mmflokati:${DRONE_COMMIT_BRANCH}-${REV}
|
||||||
|
- docker push dr.dnix.de/mmflokati:latest
|
||||||
|
- docker push dr.dnix.de/mmflokati:${DRONE_COMMIT_BRANCH}-${REV}
|
||||||
|
deploy:
|
||||||
|
image: ubuntu:16.04
|
||||||
|
commands:
|
||||||
|
- echo "foo"
|
||||||
|
|
Loading…
Reference in New Issue