add build status to readme
continuous-integration/drone/push Build is passing Details

This commit is contained in:
an 2019-08-01 18:12:32 +02:00
parent 3eca758989
commit ee3287b954
2 changed files with 28 additions and 0 deletions

View File

@ -2,6 +2,32 @@ kind: pipeline
name: default name: default
steps: steps:
- name: prebuild
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:

View File

@ -1,3 +1,5 @@
[![Build Status](https://dev.dnix.de/api/badges/an/flokati/status.svg)](https://dev.dnix.de/an/flokati)
# image-transformer # image-transformer
Derived from https://karthikkaranth.me/blog/image-resizing-server-go-libvips/ Derived from https://karthikkaranth.me/blog/image-resizing-server-go-libvips/