这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/gen-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ jobs:
git checkout gh_pages
git merge -X theirs origin/main --allow-unrelated-histories

GOBIN=/tmp/ go install github.com/google/go-licenses@v1.0.0
/tmp/go-licenses csv ./cmd/apigeecli > third-party-licenses.txt || echo "Ignore warnings"
/tmp/go-licenses save ./cmd/apigeecli --save_path=third-party --force || echo "Ignore warnings"
GOBIN=/tmp/ go install github.com/google/go-licenses@v1.6.0
/tmp/go-licenses report ./... --template licenses.tpl --ignore internal > third-party-licenses.txt 2> /dev/null || echo "Ignore warnings"
# /tmp/go-licenses save ./cmd/apigeecli --save_path=third-party --force || echo "Ignore warnings"

git add third-party third-party-licenses.txt
# git add third-party third-party-licenses.txt
git add third-party-licenses.txt
git commit -m "generate licenses - $SHORT_SHA" || echo "No Changes in license"

go run docs/docs.go
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/licenses.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{ range . }}
## {{ .Name }}

* Name: {{ .Name }}
* Version: {{ .Version }}
* License: [{{ .LicenseName }}]({{ .LicenseURL }})

```
{{ .LicenseText }}
```
{{ end }}
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ archives:
wrap_in_directory: true
files:
- LICENSE.txt
- third-party-licenses.txt
builds:
- apigeecli

Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ WORKDIR /go/src/apigeecli
ENV GO111MODULE=on
RUN go mod tidy
RUN go mod download
RUN date +%FT%H:%I:%M+%Z > /tmp/date
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -buildvcs=true -a -gcflags='all="-l"' -ldflags='-s -w -extldflags "-static" -X main.version='${TAG}' -X main.commit='${COMMIT}' -X main.date='$(cat /tmp/date) -o /go/bin/apigeecli /go/src/apigeecli/cmd/apigeecli/apigeecli.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -buildvcs=true -a -gcflags='all="-l"' -ldflags='-s -w -extldflags "-static" -X main.version='${TAG}' -X main.commit='${COMMIT}' -X main.date='$(date +%FT%H:%I:%M+%Z) -o /go/bin/apigeecli /go/src/apigeecli/cmd/apigeecli/apigeecli.go

FROM ghcr.io/jqlang/jq:1.7.1@sha256:096b83865ad59b5b02841f103f83f45c51318394331bf1995e187ea3be937432 AS jq

Expand Down
202 changes: 0 additions & 202 deletions third-party/LICENSE.txt

This file was deleted.

Loading
Loading