Skip to content

Commit

Permalink
Add new instructions to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
koddr committed Feb 17, 2022
1 parent 72d313c commit e7dacc0
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)

0 comments on commit e7dacc0

Please sign in to comment.