Skip to content

Commit 1ebdde6

Browse files
committed
refactor: release task
1 parent 29e136f commit 1ebdde6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ exec:
1313
.PHONY: exec
1414

1515
release:
16-
# 1. Get latest git tag
17-
$(eval GIT_TAG := $(shell git tag -l --contains HEAD))
18-
1916
# 2. Update docker files to latest tag
20-
./docker/version.sh $(GIT_TAG)
17+
./docker/version.sh $(ARGS)
2118

2219
# 3. Commit and push to latest tag
2320
git add docker/Dockerfile
24-
git commit docker/Dockerfile -m "$(GIT_TAG)"
21+
git commit docker/Dockerfile -m "$(ARGS)"
22+
git tag $(ARGS)
2523
git push origin master
26-
git push origin $(GIT_TAG)
24+
git push origin $(ARGS)
2725
.ONESHELL: release

0 commit comments

Comments
 (0)