This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 18
18
# Get rid of existing binaries
19
19
rm -f bundles/libcompose-cli*
20
20
21
+ BUILDTIME=$( date --rfc-3339 ns | sed -e ' s/ /T/' ) & > /dev/null
22
+ GITCOMMIT=$( git rev-parse --short HEAD)
23
+
21
24
# Build binaries
22
25
for OS in ${OS_PLATFORM_ARG[@]} ; do
23
26
for ARCH in ${OS_ARCH_ARG[@]} ; do
@@ -33,7 +36,7 @@ for OS in ${OS_PLATFORM_ARG[@]}; do
33
36
fi
34
37
echo " Building binary for $OS /$ARCH ..."
35
38
GOARCH=$ARCH GOOS=$OS CGO_ENABLED=0 go build \
36
- -ldflags=" -w -X github.com/docker/libcompose/version.GITCOMMIT=` git rev-parse --short HEAD ` " \
39
+ -ldflags=" -w -X github.com/docker/libcompose/version.GITCOMMIT=${GITCOMMIT} -X github.com/docker/libcompose/version.BUILDTIME= ${BUILDTIME} -X github.com/docker/libcompose/version.SHOWWARNING= ${SHOWWARNING} " \
37
40
-o ${OUTPUT_BIN} ./cli/main
38
41
done
39
42
done
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package version
2
2
3
3
var (
4
4
// VERSION should be updated by hand at each release
5
- VERSION = "0.4.0-dev "
5
+ VERSION = "0.4.0"
6
6
7
7
// GITCOMMIT will be overwritten automatically by the build system
8
8
GITCOMMIT = "HEAD"
You can’t perform that action at this time.
0 commit comments