| |
@@ -2,2 +2,4 @@ |
| 2 |
2 |
|
|
3 |
+LATEST_TAG := $(shell git tag --sort=-version:refname | head -n 1) |
|
4 |
+ |
| 3 |
5 |
serve: |
| |
@@ -15,8 +17,31 @@ docker-static: |
| 15 |
17 |
docker-images: |
| 16 |
|
- $(eval LATEST_TAG := $(shell git tag --sort=-version:refname | head -n 1)) |
| 17 |
|
- podman build --platform linux/amd64,linux/arm64 \ |
| 18 |
|
- --manifest ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images \ |
|
18 |
+ @echo "Building for tag: $(LATEST_TAG)" |
|
19 |
+ @echo "Building AMD64..." |
|
20 |
+ podman build --platform linux/amd64 \ |
|
21 |
+ -t ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images-amd64 \ |
|
22 |
+ -f ./Dockerfile-images . |
|
23 |
+ @echo "Building ARM64..." |
|
24 |
+ podman build --platform linux/arm64 \ |
|
25 |
+ -t ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images-arm64 \ |
| 19 |
26 |
-f ./Dockerfile-images . |
|
27 |
+ @echo "Creating manifest..." |
|
28 |
+ podman manifest rm ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images 2>/dev/null || true |
|
29 |
+ podman manifest create ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images |
|
30 |
+ @echo "Adding AMD64 to manifest..." |
|
31 |
+ podman manifest add ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images \ |
|
32 |
+ ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images-amd64 |
|
33 |
+ @echo "Adding ARM64 to manifest..." |
|
34 |
+ podman manifest add ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images \ |
|
35 |
+ ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images-arm64 |
|
36 |
+ @echo "Inspecting manifest:" |
|
37 |
+ podman manifest inspect ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images |
|
38 |
+ @echo "Pushing manifest:" |
| 20 |
39 |
podman manifest push --all ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images |
| 21 |
|
- |
|
40 |
+# docker-images: |
|
41 |
+# $(eval LATEST_TAG := $(shell git tag --sort=-version:refname | head -n 1)) |
|
42 |
+# podman build --platform linux/amd64,linux/arm64 \ |
|
43 |
+# --manifest ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images \ |
|
44 |
+# -f ./Dockerfile-images . |
|
45 |
+# podman manifest push --all ghcr.io/9it-full-service/quilldrop:$(LATEST_TAG)-images |
|
46 |
+ |
| 22 |
47 |
docker-run: |