-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (58 loc) · 2.5 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
PIMCORE_DOCKER=6.9.6d
PIMCORE_DOCKER_PREV=6.9.6b
PIMCORE_EXTRAS_DOCKER=6.9.6d
PIMCORE_EXTRAS_DOCKER_PREV=6.9.6c
build-arch:
cd docker/pimcore/files-00; gtar cf ../files.tar * --owner=0 --group=0
cd docker && DOCKER_BUILDKIT=1 \
docker buildx build \
--load \
--platform linux/`arch|sed 's/x86_64/amd64/'` \
--secret id=GITHUBTOKEN,src=pimcore/GITHUBTOKEN \
--cache-from taywa/pimcore:$(PIMCORE_DOCKER_PREV) \
--build-arg BUILDKIT_INLINE_CACHE=1 -t taywa/pimcore:$(PIMCORE_DOCKER) \
pimcore
docker tag taywa/pimcore:$(PIMCORE_DOCKER) taywa/pimcore:latest
rm docker/pimcore/files.tar
build-push:
cd docker/pimcore/files-00; gtar cf ../files.tar * --owner=0 --group=0
cd docker && DOCKER_BUILDKIT=1 \
docker buildx build \
--push \
--platform linux/arm64,linux/amd64 \
--secret id=GITHUBTOKEN,src=pimcore/GITHUBTOKEN \
--cache-from taywa/pimcore:$(PIMCORE_DOCKER_PREV) \
--build-arg BUILDKIT_INLINE_CACHE=1 -t taywa/pimcore:$(PIMCORE_DOCKER) \
pimcore
docker tag taywa/pimcore:$(PIMCORE_DOCKER) taywa/pimcore:latest
rm docker/pimcore/files.tar
push-arch:
docker tag taywa/pimcore:$(PIMCORE_DOCKER) taywa/pimcore:$(PIMCORE_DOCKER)-`arch|sed 's/x86_64/amd64/'`
docker push taywa/pimcore:$(PIMCORE_DOCKER)-`arch|sed 's/x86_64/amd64/'`
build-extras-arch:
cd docker && DOCKER_BUILDKIT=1 \
docker buildx build \
--load \
--platform linux/`arch|sed 's/x86_64/amd64/'` \
--secret id=GITHUBTOKEN,src=pimcore-extras/GITHUBTOKEN \
--cache-from taywa/pimcore-extras:$(PIMCORE_EXTRAS_DOCKER_PREV) \
--build-arg BUILDKIT_INLINE_CACHE=1 -t taywa/pimcore-extras:$(PIMCORE_EXTRAS_DOCKER) \
pimcore-extras
docker tag taywa/pimcore-extras:$(PIMCORE_EXTRAS_DOCKER) taywa/pimcore-extras:latest
build-extras-push:
cd docker && DOCKER_BUILDKIT=1 \
docker buildx build \
--push \
--platform linux/arm64,linux/amd64/ \
--secret id=GITHUBTOKEN,src=pimcore-extras/GITHUBTOKEN \
--cache-from taywa/pimcore-extras:$(PIMCORE_EXTRAS_DOCKER_PREV) \
--build-arg BUILDKIT_INLINE_CACHE=1 -t taywa/pimcore-extras:$(PIMCORE_EXTRAS_DOCKER) \
pimcore-extras
docker tag taywa/pimcore-extras:$(PIMCORE_EXTRAS_DOCKER) taywa/pimcore-extras:latest
push-extras-arch:
docker tag taywa/pimcore-extras:$(PIMCORE_EXTRAS_DOCKER) taywa/pimcore-extras:$(PIMCORE_EXTRAS_DOCKER)-`arch|sed 's/x86_64/amd64/'`
docker push taywa/pimcore-extras:$(PIMCORE_EXTRAS_DOCKER)-`arch|sed 's/x86_64/amd64/'`
push-manifest:
manifest-tool --debug push from-spec manifest.yaml
push-extras-manifest:
manifest-tool --debug push from-spec manifest-extras.yaml