mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
fix: testing for flag files on windows (#1249)
* fix: testing for flag files on windows * fix build script on windows/msys
This commit is contained in:
parent
2f4d58776d
commit
56368a7207
3 changed files with 22 additions and 4 deletions
6
build.sh
6
build.sh
|
@ -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…
Add table
Add a link
Reference in a new issue