watchtower/build.sh

5 lines
163 B
Bash

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