packaging: Add EULA

Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
Chris Crone 2020-09-21 16:15:59 +02:00 committed by Guillaume Tardif
parent c549d85505
commit 2aea82a7c6
5 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,4 @@
.git/
bin/
dist/
tests/node-client/node_modules/

View File

@ -25,10 +25,10 @@ jobs:
${{ runner.os }}-go-
- name: Build
run: make -f builder.Makefile cross
run: make -f builder.Makefile package
- uses: ncipollo/release-action@v1
with:
artifacts: "bin/*"
artifacts: "dist/*"
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}

1
.gitignore vendored
View File

@ -1 +1,2 @@
bin/
dist/

View File

@ -37,6 +37,11 @@ ifdef BUILD_TAGS
TAGS=-tags $(BUILD_TAGS)
endif
TAR_TRANSFORM:=--transform s/packaging/docker/ --transform s/bin/docker/
ifneq ($(findstring bsd,$(shell tar --version)),)
TAR_TRANSFORM=-s /packaging/docker/ -s /bin/docker/
endif
all: cli
.PHONY: protos
@ -73,3 +78,9 @@ check-license-headers:
check-go-mod:
./scripts/validate/check-go-mod
.PHONY: package
package: cross
mkdir -p dist
tar -czf dist/docker-linux-amd64.tar.gz $(TAR_TRANSFORM) packaging/LICENSE $(BINARY)-linux-amd64
tar -czf dist/docker-darwin-amd64.tar.gz $(TAR_TRANSFORM) packaging/LICENSE $(BINARY)-darwin-amd64
rm -f dist/docker-windows-amd64.zip && zip dist/docker-windows-amd64.zip -j packaging/LICENSE $(BINARY)-windows-amd64.exe

2
packaging/LICENSE Normal file
View File

@ -0,0 +1,2 @@
The Docker End User License Agreement (https://www.docker.com/legal/docker-software-end-user-license-agreement) describes Docker's Terms for this software.
By downloading, accessing, or using this software you expressly accept and agree to the Terms set out in the Docker End User License Agreement.