Skip to content

Commit

Permalink
Supporting release to github
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Ludinard committed Oct 12, 2023
1 parent 1a25d85 commit 929b3d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NAME := snooze-otlp
REPO := ghcr.io/japannext/snooze-otlp
VERSION := 1.0.0
COMMIT := $(shell git rev-parse --short HEAD)

Expand Down Expand Up @@ -45,3 +46,9 @@ develop:
helm cm-push .charts/$(NAME)-0.0.0-dev.tgz jnx-repo-upload
@echo -e "${INFO}5) Running helmfile${RESET}"
helmfile -f .helmfile.yaml sync

release:
@echo -e "${INFO}1) Building docker image${RESET}"
docker build -t $(REPO):$(VERSION) --build-arg VERSION=$(VERSION) --build-arg COMMIT=$(COMMIT) .
@echo -e "${INFO}2) Uploading docker image${RESET}"
docker push $(REPO):$(VERSION)

0 comments on commit 929b3d6

Please sign in to comment.