Compare commits

..

1 Commits

Author SHA1 Message Date
229c2d535e Version
Some checks reported errors
continuous-integration/drone/push Build was killed
* log on startup
* display on about page
* use compile flag
* set with git tag value
2019-09-28 16:56:44 +02:00
2 changed files with 4 additions and 2 deletions

View File

@ -30,6 +30,7 @@ steps:
settings:
registry: reg.meutel.net
repo: reg.meutel.net/go-bouquins
build_args: "version=$DRONE_TAG"
username:
from_secret: registry_login
password:
@ -73,6 +74,6 @@ trigger:
---
kind: signature
hmac: 402ef53d245969c2df4d6ec14d51d3d9665856c8fa0ec8248755a209fb66ff36
hmac: 6d31a8c73df2a63f6f04334ebf20ad9c7e4a992acb15097b1f887433748f0fd7
...

View File

@ -1,11 +1,12 @@
FROM golang as builder
ARG version
WORKDIR /go/src/meutel.net/meutel/go-bouquins
COPY . .
RUN GO111MODULE=on go get .
RUN GO111MODULE=on CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o app .
RUN GO111MODULE=on CGO_ENABLED=1 GOOS=linux go build -ldflags "-X main.version=$version" -a -installsuffix cgo -o app .
RUN curl -X POST -s --data-urlencode 'input@assets/css/bouquins.css' https://cssminifier.com/raw > assets/css/bouquins.min.css
# deployment image