-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid git add --all
from make tag
#1
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,10 +39,10 @@ else ifeq ($(OS),Linux) | |
sed -i -e "s|repository: .*|repository: $(DOCKER_REGISTRY)\/REPLACE_ME_ORG\/REPLACE_ME_APP_NAME|" values.yaml | ||
sed -i -e "s/tag: .*/tag: $(RELEASE_VERSION)/" values.yaml | ||
else | ||
echo "platfrom $(OS) not supported to release from" | ||
echo "platform $(OS) not supported to release from" | ||
exit -1 | ||
endif | ||
git add --all | ||
git commit -m "release $(RELEASE_VERSION)" --allow-empty # if first release then no verion update is performed | ||
git add *.yaml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The main fix. |
||
git commit -m "release $(RELEASE_VERSION)" --allow-empty # if first release then no version update is performed | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another typo. |
||
git tag -fa v$(RELEASE_VERSION) -m "Release version $(RELEASE_VERSION)" | ||
git push origin v$(RELEASE_VERSION) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ CHART_REPO := http://jenkins-x-chartmuseum:8080 | |
CURRENT=$(pwd) | ||
NAME := REPLACE_ME_APP_NAME | ||
OS := $(shell uname) | ||
VERSION := $(shell cat ../../VERSION) | ||
RELEASE_VERSION := $(shell cat ../../VERSION) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For some reason, the |
||
|
||
build: clean | ||
rm -rf requirements.lock | ||
|
@@ -32,17 +32,17 @@ release: clean | |
|
||
tag: | ||
ifeq ($(OS),Darwin) | ||
sed -i "" -e "s/version:.*/version: $(VERSION)/" Chart.yaml | ||
sed -i "" -e "s/tag: .*/tag: $(VERSION)/" values.yaml | ||
sed -i "" -e "s/version:.*/version: $(RELEASE_VERSION)/" Chart.yaml | ||
sed -i "" -e "s/tag: .*/tag: $(RELEASE_VERSION)/" values.yaml | ||
else ifeq ($(OS),Linux) | ||
sed -i -e "s/version:.*/version: $(VERSION)/" Chart.yaml | ||
sed -i -e "s/version:.*/version: $(RELEASE_VERSION)/" Chart.yaml | ||
sed -i -e "s|repository: .*|repository: $(DOCKER_REGISTRY)\/REPLACE_ME_ORG\/$(NAME)|" values.yaml | ||
sed -i -e "s/tag: .*/tag: $(VERSION)/" values.yaml | ||
sed -i -e "s/tag: .*/tag: $(RELEASE_VERSION)/" values.yaml | ||
else | ||
echo "platfrom $(OS) not supported to tag with" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another unexplained difference in the |
||
echo "platform $(OS) not supported to release from" | ||
exit -1 | ||
endif | ||
git add --all | ||
git commit -m "release $(VERSION)" --allow-empty # if first release then no verion update is performed | ||
git tag -fa v$(VERSION) -m "Release version $(VERSION)" | ||
git push origin v$(VERSION) | ||
git add *.yaml | ||
git commit -m "release $(RELEASE_VERSION)" --allow-empty # if first release then no version update is performed | ||
git tag -fa v$(RELEASE_VERSION) -m "Release version $(RELEASE_VERSION)" | ||
git push origin v$(RELEASE_VERSION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a typo I noticed while I was here.