fix(ci): fix docker build issue, fe should be built before be

This commit is contained in:
hexxa 2022-05-14 16:45:37 +08:00 committed by Hexxa
parent 5b63605993
commit e5039cf160
5 changed files with 22 additions and 21 deletions

View file

@ -1,16 +1,17 @@
#!/bin/bash
set -o nounset errexit
export QSROOT
QSROOT=$(pwd)
export QSROOT
rm -r dist && mkdir dist
docker builder prune
# set this for users behind GFW...
# set this for builders behind GFW...
go env -w GOPROXY=https://goproxy.cn,direct
go get -d -v ./...
go get github.com/mitchellh/gox
go install github.com/mitchellh/gox@v1.0.1
PATH=$PATH:$HOME/go/bin
cd cmd/start
gox \
-osarch="linux/amd64" \
-output "$QSROOT/dist/quickshare/start"
echo "Done"