Bundle a tested Traefik in releases, the image and the installer
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e951d22687
commit
d9c422fb84
8 files changed
+49
-9
No files matched your search
+5
-2
@@ -4,7 +4,7 @@
|
||||
# deploy/build.sh [version] version defaults to `git describe`
|
||||
#
|
||||
# Output:
|
||||
# dist/bin/<os>_<arch>/blacktip the raw binaries (the Docker image uses the linux ones)
|
||||
# dist/bin/<os>_<arch>/blacktip and traefik the raw binaries (the Docker image uses the linux ones)
|
||||
# dist/blacktip_<version>_<os>_<arch>.tar.gz or .zip
|
||||
# dist/SHA256SUMS
|
||||
#
|
||||
@@ -28,10 +28,13 @@ for t in $TARGETS; do
|
||||
CGO_ENABLED=0 GOOS=$os GOARCH=$arch GOARM=7 \
|
||||
go build -trimpath -ldflags "-s -w -X main.version=$VERSION" -o "$out/$NAME$ext" "./cmd/$NAME"
|
||||
|
||||
# the Traefik that Blacktip drives for http/https (see BLACKTIP_TRAEFIK)
|
||||
sh deploy/fetch-traefik.sh "$os" "$arch" "$out"
|
||||
|
||||
pkg="${NAME}_${VERSION}_${os}_${arch}"
|
||||
stage="dist/stage/$pkg"
|
||||
mkdir -p "$stage"
|
||||
cp "$out/$NAME$ext" "$stage/"
|
||||
cp "$out/$NAME$ext" "$out/traefik$ext" "$stage/"
|
||||
for f in LICENSE README.md .env.example; do
|
||||
[ -f "$f" ] && cp "$f" "$stage/"
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user