1
0
mirror of https://github.com/nshttpd/mikrotik-exporter synced 2025-04-05 11:39:09 +02:00
mikrotik-exporter/scripts/build.sh
2017-09-04 22:52:14 -04:00

15 lines
260 B
Bash
Executable File

#!/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