mirror of
https://github.com/nshttpd/mikrotik-exporter.git
synced 2025-02-13 00:11:19 +01:00
15 lines
290 B
Bash
15 lines
290 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
set -x
|
||
|
|
||
|
DIR=`pwd`
|
||
|
NAME=`basename ${DIR}`
|
||
|
SHA=`git rev-parse --short HEAD`
|
||
|
VERSION=${VERSION:-$SHA}
|
||
|
|
||
|
GOOS=linux GOARCH=arm go build .
|
||
|
|
||
|
docker build -t nshttpd/${NAME}:${VERSION}-armhf -f Dockerfile.armhf .
|
||
|
docker push nshttpd/${NAME}:${VERSION}-armhf
|
||
|
|
||
|
rm mikrotik-exporter
|