watchtower/build.sh

6 lines
163 B
Bash
Raw Permalink Normal View History

#!/bin/bash
VERSION=$(git describe --tags)
echo "Building $VERSION..."
go build -o watchtower -ldflags "-X github.com/containrrr/watchtower/cmd.version=$VERSION"