'.drone.yml' ändern
the build is pending
Details
the build is pending
Details
This commit is contained in:
parent
9619e760af
commit
1394e59741
10
.drone.yml
10
.drone.yml
|
@ -2,12 +2,11 @@ pipeline:
|
||||||
build:
|
build:
|
||||||
image: golang:1.9
|
image: golang:1.9
|
||||||
environment:
|
environment:
|
||||||
- FOO=2
|
- IMAGE=dr.dnix.de/$DRONE_REPO_NAME
|
||||||
commands:
|
commands:
|
||||||
- REV=$(git rev-list HEAD --count)
|
- REV=$(git rev-list HEAD --count)
|
||||||
- BUILDDATE=$(date)
|
- BUILDDATE=$(date)
|
||||||
- BRANCH=$DRONE_COMMIT_BRANCH
|
- BRANCH=$DRONE_COMMIT_BRANCH
|
||||||
- IMAGE=dr.dnix.de/$DRONE_REPO_NAME
|
|
||||||
- VERSIONGO=version.go
|
- VERSIONGO=version.go
|
||||||
- echo "Building image $IMAGE:$BRANCH-$REV"
|
- echo "Building image $IMAGE:$BRANCH-$REV"
|
||||||
- echo "package main" >$VERSIONGO
|
- echo "package main" >$VERSIONGO
|
||||||
|
@ -26,4 +25,11 @@ pipeline:
|
||||||
- cat version.go
|
- cat version.go
|
||||||
- go get -d ./...
|
- go get -d ./...
|
||||||
- go build
|
- go build
|
||||||
|
publish:
|
||||||
|
image: plugins/docker
|
||||||
|
environment:
|
||||||
|
- IMAGE=dr.dnix.de/$DRONE_REPO_NAME
|
||||||
|
- REV=$(git rev-list HEAD --count)
|
||||||
|
repo: $IMAGE
|
||||||
|
tags: [ $REV, latest ]
|
||||||
|
|
Loading…
Reference in New Issue