mirror of
https://github.com/containrrr/watchtower.git
synced 2024-11-27 08:31:22 +02:00
56368a7207
* fix: testing for flag files on windows * fix build script on windows/msys
10 lines
247 B
Bash
Executable File
10 lines
247 B
Bash
Executable File
#!/bin/bash
|
|
|
|
BINFILE=watchtower
|
|
if [ -n "$MSYSTEM" ]; then
|
|
BINFILE=watchtower.exe
|
|
fi
|
|
VERSION=$(git describe --tags)
|
|
echo "Building $VERSION..."
|
|
go build -o $BINFILE -ldflags "-X github.com/containrrr/watchtower/internal/meta.Version=$VERSION"
|