fix: testing for flag files on windows (#1249)
* fix: testing for flag files on windows * fix build script on windows/msyspull/1277/head
parent
2f4d58776d
commit
56368a7207
@ -1,5 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
BINFILE=watchtower
|
||||
if [ -n "$MSYSTEM" ]; then
|
||||
BINFILE=watchtower.exe
|
||||
fi
|
||||
VERSION=$(git describe --tags)
|
||||
echo "Building $VERSION..."
|
||||
go build -o watchtower -ldflags "-X github.com/containrrr/watchtower/internal/meta.Version=$VERSION"
|
||||
go build -o $BINFILE -ldflags "-X github.com/containrrr/watchtower/internal/meta.Version=$VERSION"
|
||||
|
Loading…
Reference in New Issue