CI: Refactor build script

This commit is contained in:
Michael Mayer 2022-02-16 16:52:35 +01:00
parent bf225185be
commit 50f5c9f2ef
2 changed files with 4 additions and 9 deletions

View file

@ -1,11 +1,3 @@
.PHONY: all build dev npm dep dep-go dep-js dep-list dep-tensorflow dep-upgrade dep-upgrade-js \
test test-js test-go install generate fmt fmt-go fmt-js upgrade start stop \
terminal root-terminal packer-digitalocean acceptance clean tidy;
.SILENT: ; # no need for @
.ONESHELL: ; # recipes execute in same shell
.NOTPARALLEL: ; # wait for target to finish
.EXPORT_ALL_VARIABLES: ; # send all vars to shell
export GO111MODULE=on
export GODEBUG=http2client=0
@ -286,6 +278,7 @@ docker-goproxy:
docker pull golang:alpine
scripts/docker/buildx-multi.sh goproxy linux/amd64,linux/arm64 $(DOCKER_TAG)
docker-demo:
docker pull photoprism/photoprism:preview
scripts/docker/build.sh demo $(DOCKER_TAG)
scripts/docker/push.sh demo $(DOCKER_TAG)
docker-demo-local:
@ -315,3 +308,6 @@ fmt-go:
goimports -w pkg internal cmd
tidy:
go mod tidy
.PHONY: all build dev npm dep dep-go dep-js dep-list dep-tensorflow dep-upgrade dep-upgrade-js test test-js test-go \
install generate fmt fmt-go fmt-js upgrade start stop terminal root-terminal packer-digitalocean acceptance clean tidy;

View file

@ -9,6 +9,5 @@ scripts/test.sh
make docker-preview
sleep 2
docker pull photoprism/photoprism:preview
make docker-demo