squash merge from dev branch
This commit is contained in:
15
scripts/build.sh
Executable file
15
scripts/build.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
|
||||
DIR=`pwd`
|
||||
NAME=`basename ${DIR}`
|
||||
SHA=`git rev-parse --short HEAD`
|
||||
VERSION=${VERSION:-$SHA}
|
||||
|
||||
GOOS=linux GOARCH=amd64 go build .
|
||||
|
||||
docker build -t nshttpd/${NAME}:${VERSION} .
|
||||
docker push nshttpd/${NAME}:${VERSION}
|
||||
|
||||
rm mikrotik-exporter
|
||||
Reference in New Issue
Block a user