forked from podtato-head/podtato-head
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
69 lines (58 loc) · 2.84 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
### login to registry ghcr.io using GITHUB_USER and GITHUB_TOKEN env vars in environment or .env file is expected
### (these are the implicit values in the empty parameters - "" - below)
### TODO(?): genericize the registry and login and move logic to Makefile
install-requirements:
scripts/requirements.sh /usr/local/bin
### podtato-head-microservices
podtato-head-verify:
$(MAKE) -C podtato-head-microservices vet
$(MAKE) -C podtato-head-microservices fmt
$(MAKE) -C podtato-head-microservices test
build-microservices-images:
podtato-head-microservices/build/build_images.sh "" "" "" \
scratch ''
podtato-head-microservices/build/build_images.sh "" "" "" \
gcr.io/distroless/static:latest distroless
podtato-head-microservices/build/build_images.sh "" "" "" \
registry.access.redhat.com/ubi9/ubi-micro:latest ubi
podtato-head-microservices/build/build_images.sh "" "" "" \
distroless.dev/alpine-base:latest chainguard
push-microservices-images:
podtato-head-microservices/build/build_images.sh "" "" "" \
scratch '' true
podtato-head-microservices/build/build_images.sh "" "" "" \
gcr.io/distroless/static:latest distroless true
podtato-head-microservices/build/build_images.sh "" "" "" \
registry.access.redhat.com/ubi9/ubi-micro:latest ubi true
podtato-head-microservices/build/build_images.sh "" "" "" \
distroless.dev/alpine-base:latest chainguard true
test-microservices: push-microservices-images
# special build and tag for test images
IMAGE_VERSION=test podtato-head-microservices/build/build_images.sh "" "" "" \
scratch '' true
IMAGE_VERSION=test scripts/test_with_kind.sh
### podtato-head-server
build-server-images:
podtato-head-server/build/build_image.sh '' '' '' \
scratch '' false
podtato-head-server/build/build_image.sh '' '' '' \
gcr.io/distroless/static:latest distroless false
podtato-head-server/build/build_image.sh '' '' '' \
registry.access.redhat.com/ubi9/ubi-micro:latest ubi false
podtato-head-server/build/build_image.sh '' '' '' \
distroless.dev/alpine-base:latest chainguard false
push-server-images:
podtato-head-server/build/build_image.sh '' '' '' \
scratch '' true
podtato-head-server/build/build_image.sh '' '' '' \
gcr.io/distroless/static:latest distroless true
podtato-head-server/build/build_image.sh '' '' '' \
registry.access.redhat.com/ubi9/ubi-micro:latest ubi true
podtato-head-server/build/build_image.sh '' '' '' \
distroless.dev/alpine-base:latest chainguard true
test-server: push-server-images
podtato-head-server/build/test_image.sh
podtato-head-server/build/test_image.sh '' '' '' distroless
podtato-head-server/build/test_image.sh '' '' '' ubi
podtato-head-server/build/test_image.sh '' '' '' chainguard
.PHONY: build-microservices-images push-microservices-images test-microservices install-requirements build-server-images push-server-images test-server podtato-head-verify