Skip to content

Commit e7dacc0

Browse files
committed
Add new instructions to Makefile
1 parent 72d313c commit e7dacc0

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

Makefile

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: clean lint security critic test install build release
1+
.PHONY: clean lint security critic test install build release build-and-push-images delete-tag update-pkg-cache
22

33
clean:
44
rm -rf ./tmp coverage.out
@@ -23,11 +23,20 @@ build: test
2323
goreleaser --snapshot --skip-publish --rm-dist
2424

2525
release: test
26-
git tag -a $(VERSION) -m "$(VERSION)"
26+
git tag -a v$(VERSION) -m "v$(VERSION)"
2727
goreleaser --snapshot --skip-publish --rm-dist
2828

29-
delete-tag:
30-
git tag --delete $(VERSION)
29+
build-and-push-images: test
30+
podman build -t docker.io/koddr/cgapp:latest .
31+
podman push docker.io/koddr/cgapp:latest
32+
podman build -t docker.io/koddr/cgapp:$(VERSION) .
33+
podman push docker.io/koddr/cgapp:$(VERSION)
34+
podman image rm docker.io/koddr/cgapp:$(VERSION)
3135

3236
update-pkg-cache:
33-
curl -i https://proxy.golang.org/github.com/create-go-app/cli/v3/@v/$(VERSION).info
37+
curl -i https://proxy.golang.org/github.com/create-go-app/cli/v3/@v/v$(VERSION).info
38+
39+
delete-tag:
40+
git tag --delete v$(VERSION)
41+
podman image rm docker.io/koddr/cgapp:latest
42+
podman image rm docker.io/koddr/cgapp:$(VERSION)

0 commit comments

Comments
 (0)