Compare commits

..

1 Commits

Author SHA1 Message Date
4aea64f71f Version app and display
Some checks failed
continuous-integration/drone/push Build is failing
2019-09-28 15:09:47 +02:00
2 changed files with 2 additions and 4 deletions

View File

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

View File

@ -1,12 +1,11 @@
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 -ldflags "-X main.version=$version" -a -installsuffix cgo -o app .
RUN GO111MODULE=on CGO_ENABLED=1 GOOS=linux go build -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