diff --git a/Makefile b/Makefile index 8049a44..864b300 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: clean lint security critic test install build release +.PHONY: clean lint security critic test install build release build-and-push-images delete-tag update-pkg-cache clean: rm -rf ./tmp coverage.out @@ -23,11 +23,20 @@ build: test goreleaser --snapshot --skip-publish --rm-dist release: test - git tag -a $(VERSION) -m "$(VERSION)" + git tag -a v$(VERSION) -m "v$(VERSION)" goreleaser --snapshot --skip-publish --rm-dist -delete-tag: - git tag --delete $(VERSION) +build-and-push-images: test + podman build -t docker.io/koddr/cgapp:latest . + podman push docker.io/koddr/cgapp:latest + podman build -t docker.io/koddr/cgapp:$(VERSION) . + podman push docker.io/koddr/cgapp:$(VERSION) + podman image rm docker.io/koddr/cgapp:$(VERSION) update-pkg-cache: - curl -i https://proxy.golang.org/github.com/create-go-app/cli/v3/@v/$(VERSION).info + curl -i https://proxy.golang.org/github.com/create-go-app/cli/v3/@v/v$(VERSION).info + +delete-tag: + git tag --delete v$(VERSION) + podman image rm docker.io/koddr/cgapp:latest + podman image rm docker.io/koddr/cgapp:$(VERSION) \ No newline at end of file