mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
03d14553b3
commit
4171f6d6c1
1 changed files with 7 additions and 5 deletions
|
@ -11,11 +11,7 @@ build:
|
||||||
- mkdir -p ./src/github.com/docker
|
- mkdir -p ./src/github.com/docker
|
||||||
- ln -sf $GOPATH $GOPATH/src/github.com/docker/cli
|
- ln -sf $GOPATH $GOPATH/src/github.com/docker/cli
|
||||||
- run: |
|
- run: |
|
||||||
go build $ARGS -ldflags=" \
|
go build $ARGS -ldflags="$LD_FLAGS -X \"github.com/docker/cli/cli/version.PlatformName=Docker Engine - Community\"" github.com/docker/cli/cmd/docker
|
||||||
-X \"github.com/docker/cli/cli/version.BuildTime=$(date "+%Y-%m-%dT%H:%M:%S%z")\" \
|
|
||||||
-X github.com/docker/cli/cli/version.Version={{version}} \
|
|
||||||
-X \"github.com/docker/cli/cli/version.PlatformName=Docker Engine - Community\" \
|
|
||||||
" github.com/docker/cli/cmd/docker
|
|
||||||
- run: |
|
- run: |
|
||||||
for md in man/*.[1-8].md; do
|
for md in man/*.[1-8].md; do
|
||||||
section=$(basename "$md" | sed 's/.*\.\([1-8]\)\.md/\1/')
|
section=$(basename "$md" | sed 's/.*\.\([1-8]\)\.md/\1/')
|
||||||
|
@ -28,6 +24,12 @@ build:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -trimpath
|
- -trimpath
|
||||||
- -o={{prefix}}/bin/docker
|
- -o={{prefix}}/bin/docker
|
||||||
|
LD_FLAGS:
|
||||||
|
- -X github.com/docker/cli/cli/version.BuildTime=$(date "+%Y-%m-%dT%H:%M:%S%z")
|
||||||
|
- -X github.com/docker/cli/cli/version.Version={{version}}
|
||||||
|
linux:
|
||||||
|
LD_FLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
provides:
|
provides:
|
||||||
- bin/docker
|
- bin/docker
|
||||||
test:
|
test:
|
||||||
|
|
Loading…
Reference in a new issue