-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
46 lines (32 loc) · 919 Bytes
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
docker_image_name = internetstandards/dashboard-static
all: lint audit test
setup: vue-cli
lint:
npm run lint
audit:
npm audit
test:
# TODO
vue-cli=node_modules/.bin/vue-cli-service
$(vue-cli):
npm install
vue-cli: | $(vue-cli)
run: vue-cli
npm run dev
# This option takes the env.deploy file and applies it during build.
build: vue-cli
npm run build -- --mode deploy
build-local: vue-cli
npm run build -- --mode development
pull_image:
# optimize build by caching previously build image
-docker pull ${docker_image_name}
# do not build and push on arm due to incompatible architectures
push_image:
docker push ${docker_image_name}
image build_image:
docker buildx build --platform linux/amd64 --tag ${docker_image_name} .
promote_staging_to_live:
docker pull ${docker_image_name}:latest
docker tag ${docker_image_name}:latest ${docker_image_name}:live
docker push ${docker_image_name}:live