„.drone.yml“ ändern
continuous-integration/drone/push Build is failing Details

This commit is contained in:
an 2021-05-20 09:16:47 +00:00
parent b6e505184e
commit 1d7a228d7f
1 changed files with 0 additions and 24 deletions

View File

@ -4,30 +4,6 @@ name: default
steps: steps:
- name: prebuild - name: prebuild
image: golang:latest image: golang:latest
commands:
- IMAGE=dr.dnix.de/$DRONE_REPO_NAME
- REV=$(git rev-list HEAD --count)
- BUILDDATE=$(date)
- BRANCH=$DRONE_COMMIT_BRANCH
- VERSIONGO=version.go
- TAGS=.tags
- echo "Building image $IMAGE:$BRANCH-$REV"
- echo "package main" >$VERSIONGO
- echo "" >>$VERSIONGO
- echo "const (" >>$VERSIONGO
- echo -n " FlokatiVersion = \"" >>$VERSIONGO
- echo -n "$BRANCH" >>$VERSIONGO
- echo "\"" >>$VERSIONGO
- echo -n " FlokatiBuild = \"" >>$VERSIONGO
- echo -n "$REV" >>$VERSIONGO
- echo "\"" >>$VERSIONGO
- echo -n " FlokatiBuilddate = \"" >>$VERSIONGO
- echo -n "$BUILDDATE" >>$VERSIONGO
- echo "\"" >>$VERSIONGO
- echo ")" >>$VERSIONGO
- cat $VERSIONGO
- echo -n "$BRANCH-$REV" >$TAGS
- cat $TAGS
- name: docker - name: docker
image: plugins/docker image: plugins/docker
settings: settings: