@delta-infra/cli 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/docker_build.sh +0 -20
package/package.json
CHANGED
package/scripts/docker_build.sh
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
set -euo pipefail
|
|
3
|
-
|
|
4
|
-
cd /usr/src/myapp
|
|
5
|
-
mkdir -p bin
|
|
6
|
-
|
|
7
|
-
VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev")
|
|
8
|
-
COMMIT=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown")
|
|
9
|
-
DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
|
10
|
-
|
|
11
|
-
LDFLAGS="-X github.com/delta-infra/delta-infra-cli/internal/build.Version=${VERSION} -X github.com/delta-infra/delta-infra-cli/internal/build.Commit=${COMMIT} -X github.com/delta-infra/delta-infra-cli/internal/build.Date=${DATE}"
|
|
12
|
-
|
|
13
|
-
echo "Building delta-cli-linux-amd64 ..."
|
|
14
|
-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs=false -ldflags "${LDFLAGS}" -o bin/delta-cli-linux-amd64 ./cmd/delta-cli
|
|
15
|
-
|
|
16
|
-
echo "Building delta-cli-windows-amd64.exe ..."
|
|
17
|
-
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -buildvcs=false -ldflags "${LDFLAGS}" -o bin/delta-cli-windows-amd64.exe ./cmd/delta-cli
|
|
18
|
-
|
|
19
|
-
echo "Done."
|
|
20
|
-
ls -la bin/
|