-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (23 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ifeq ($(OS),Windows_NT)
SHELL := powershell.exe
.SHELLFLAGS := -NoProfile -Command
endif
docker_create_instance_build:
docker buildx create --name apps_builder
docker buildx use apps_builder
docker buildx ls
docker buildx inspect --bootstrap
docker_build_linux:
docker buildx use apps_builder
export $(cat .env | xargs)
echo "${PB_VERSION}"
echo "${POCKETBASE_VERSION}"
docker buildx build . --platform=linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,darwin/amd64 --push -t gladson/pocketbase:latest
docker buildx build . --platform=linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,darwin/amd64 --push -t gladson/pocketbase:"${POCKETBASE_VERSION}"
docker_build_win:
docker buildx use apps_builder
.\set_env.ps1
$$Env:PB_VERSION
$$Env:POCKETBASE_VERSION
docker buildx build . --platform=linux/amd64,linux/arm64,linux/arm/v7,darwin/amd64 --push -t gladson/pocketbase:latest
docker buildx build . --platform=linux/amd64,linux/arm64,linux/arm/v7,darwin/amd64 --push -t gladson/pocketbase:$$Env:POCKETBASE_VERSION