12345678910111213141516171819 |
- ImageTag ?=v0.9.6
- KptSystemWebImg ?=kpt-event/kpt-system-web:$(ImageTag)
- VERSION=$(shell git rev-parse --short HEAD)
- img-build:
- pnpm i && pnpm build
- docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d
- #docker buildx create --use --name mybuilder
- docker buildx inspect mybuilder --bootstrap
- #docker build --build-arg version=$(VERSION) -t ${KptSystemWebImg} -f ./Dockerfile .
- docker buildx build --build-arg version=$(VERSION) -t ${KptSystemWebImg} -f ./Dockerfile --platform=linux/arm64 -o type=docker .
- docker tag ${KptSystemWebImg} registry.cn-hangzhou.aliyuncs.com/${KptSystemWebImg}
- docker push registry.cn-hangzhou.aliyuncs.com/${KptSystemWebImg}
- docker rmi ${KptSystemWebImg} registry.cn-hangzhou.aliyuncs.com/${KptSystemWebImg}
- # run tauri app:
- run:
- pnpm tauri dev
|