- commit
- 7768f66
- parent
- cd00d78
- author
- Eric Bower
- date
- 2025-08-10 14:59:34 -0400 EDT
chore: makefile changes to support podman
1 files changed,
+6,
-6
M
Makefile
M
Makefile
+6,
-6
1@@ -1,7 +1,7 @@
2 DOCKER_TAG?=$(shell git log --format="%H" -n 1)
3 DOCKER_PLATFORM?=linux/amd64,linux/arm64
4 DOCKER_CMD?=docker
5-DOCKER_BUILDX_BUILD?=$(DOCKER_CMD) buildx build --push --platform $(DOCKER_PLATFORM)
6+DOCKER_BUILDX_BUILD?=$(DOCKER_CMD) buildx build --push --platform $(DOCKER_PLATFORM) -t
7
8 fmt:
9 go fmt ./...
10@@ -25,18 +25,18 @@ build:
11 .PHONY: build
12
13 bp-setup:
14+ifeq ($(DOCKER_CMD),docker)
15 $(DOCKER_CMD) buildx ls | grep pico || $(DOCKER_CMD) buildx create --name pico
16 $(DOCKER_CMD) buildx use pico
17+else
18+ # podman
19+endif
20 .PHONY: bp-setup
21
22 bp: bp-setup
23- $(DOCKER_BUILDX_BUILD) -t "ghcr.io/picosh/pico/git-pr:$(DOCKER_TAG)" --target release-pr .
24+ $(DOCKER_BUILDX_BUILD) "ghcr.io/picosh/pico/git-pr:$(DOCKER_TAG)" --target release .
25 .PHONY: bp
26
27-deploy: bp-web
28- ssh ppipe pub git-pr-deploy -e
29-.PHONY: deploy
30-
31 smol:
32 curl https://pico.sh/smol.css -o ./static/smol.css
33 .PHONY: smol