@@ -48,60 +48,3 @@ build-static-linux-musl-arm64:
48
48
49
49
test :
50
50
cd src; go test -v -timeout 6m
51
-
52
- dist-pre :
53
- docker pull techknowlogick/xgo:latest
54
- GOBIN=/home/devel/local/bin/ go install src.techknowlogick.com/xgo@latest
55
-
56
- dist :
57
- xgo -gcflags=' -trimpath -a' -tags=" netgo osusergo sqlite_omit_load_extension" -ldflags=' -w -extldflags "-static"' --targets=linux/amd64,linux/arm-6,linux/arm64 ./src/
58
- xgo -trimpath --targets=windows-10.0/amd64,darwin/* ./src/
59
- sudo chown -R ` stat -c " %U:%G" Makefile` " github.com"
60
- mv github.com/proofrock/ bin
61
- rm -rf github.com/
62
- mv bin/ws4sql-windows-10.0-amd64.exe bin/ws4sql.exe
63
- cd bin/ && zip -9 ws4sql-v0.17dev3-win-x86_64.zip ws4sql.exe
64
- cd bin/
&& gpg --sign --default-key
[email protected] --output ws4sql-v0.17dev3-win-x86_64.zip.gpg --detach-sig ws4sql-v0.17dev3-win-x86_64.zip
65
- rm bin/ws4sql.exe
66
- mv bin/ws4sql-darwin-10.12-amd64 bin/ws4sql
67
- cd bin/ && zip -9 ws4sql-v0.17dev3-darwin-x86_64.zip ws4sql
68
- cd bin/
&& gpg --sign --default-key
[email protected] --output ws4sql-v0.17dev3-darwin-x86_64.zip.gpg --detach-sig ws4sql-v0.17dev3-darwin-x86_64.zip
69
- mv bin/ws4sql-darwin-10.12-arm64 bin/ws4sql
70
- cd bin/ && zip -9 ws4sql-v0.17dev3-darwin-arm64.zip ws4sql
71
- cd bin/
&& gpg --sign --default-key
[email protected] --output ws4sql-v0.17dev3-darwin-arm64.zip.gpg --detach-sig ws4sql-v0.17dev3-darwin-arm64.zip
72
- mv bin/ws4sql-linux-amd64 bin/ws4sql
73
- cd bin/ && bash -c " tar c ws4sql | gzip -9 > ws4sql-v0.17dev3-linux-x86_64.tar.gz"
74
- cd bin/
&& gpg --sign --default-key
[email protected] --output ws4sql-v0.17dev3-linux-x86_64.tar.gz.gpg --detach-sig ws4sql-v0.17dev3-linux-x86_64.tar.gz
75
- mv bin/ws4sql-linux-arm64 bin/ws4sql
76
- cd bin/ && bash -c " tar c ws4sql | gzip -9 > ws4sql-v0.17dev3-linux-arm64.tar.gz"
77
- cd bin/
&& gpg --sign --default-key
[email protected] --output ws4sql-v0.17dev3-linux-arm64.tar.gz.gpg --detach-sig ws4sql-v0.17dev3-linux-arm64.tar.gz
78
- mv bin/ws4sql-linux-arm-6 bin/ws4sql
79
- cd bin/ && bash -c " tar c ws4sql | gzip -9 > ws4sql-v0.17dev3-linux-armv6.tar.gz"
80
- cd bin/
&& gpg --sign --default-key
[email protected] --output ws4sql-v0.17dev3-linux-armv6.tar.gz.gpg --detach-sig ws4sql-v0.17dev3-linux-armv6.tar.gz
81
- rm bin/ws4sql
82
-
83
- docker :
84
- docker buildx build -f Dockerfile.x86_64 --no-cache -t local_ws4sql:latest .
85
-
86
- docker-multiarch :
87
- docker run --privileged --rm tonistiigi/binfmt --install arm64,arm
88
- docker buildx build -f Dockerfile.x86_64 --no-cache -t germanorizzo/ws4sql:v0.17dev3-amd64 .
89
- docker buildx build -f Dockerfile.arm64 --no-cache --platform linux/arm64/v8 -t germanorizzo/ws4sql:v0.17dev3-arm64 .
90
-
91
- docker-publish :
92
- make docker-multiarch
93
- docker push germanorizzo/ws4sql:v0.17dev3-amd64
94
- docker push germanorizzo/ws4sql:v0.17dev3-arm64
95
- docker manifest create -a germanorizzo/ws4sql:v0.17dev3 germanorizzo/ws4sql:v0.17dev3-amd64 germanorizzo/ws4sql:v0.17dev3-arm64
96
- docker manifest push germanorizzo/ws4sql:v0.17dev3
97
- - docker manifest rm germanorizzo/ws4sql:latest
98
- docker manifest create germanorizzo/ws4sql:latest germanorizzo/ws4sql:v0.17dev3-amd64 germanorizzo/ws4sql:v0.17dev3-arm64
99
- docker manifest push germanorizzo/ws4sql:latest
100
-
101
- docker-devel :
102
- docker buildx build -f Dockerfile.x86_64 --no-cache -t germanorizzo/ws4sql:edge .
103
- docker push germanorizzo/ws4sql:edge
104
-
105
- docker-cleanup :
106
- docker builder prune -af
107
- docker image prune -af
0 commit comments