mirror of
https://github.com/nshttpd/mikrotik-exporter.git
synced 2024-11-24 11:37:04 +01:00
15 lines
260 B
Bash
Executable File
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 |