-
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?
Conversation
@@ -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" |
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.
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 comment
The reason will be displayed to describe this comment to others. Learn more.
The main fix.
git add --all | ||
git commit -m "release $(RELEASE_VERSION)" --allow-empty # if first release then no verion update is performed | ||
git add *.yaml | ||
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 comment
The reason will be displayed to describe this comment to others. Learn more.
Another typo.
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason, the go
pack is subtly different from all the rest. Starting to normalize that here. The other difference is $(NAME)
vs. REPLACE_ME_APP_NAME
below, though I was unsure whether it was proper to also normalize that.
else | ||
echo "platfrom $(OS) not supported to tag with" |
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.
Another unexplained difference in the go
pack.
Oh and there is no CI on this repo, so these changes are untested. I would have expected some kind of integration / smoke test that |
fix: add a custom image for promote
@jstrachan @rawlingsj I have not kept up but are there JX-related repos that should now be archived? |
I was poking around in a JX-managed app and happened to look at the diff of a release tag commit, which surprised me:
The
@tmp
stuff is an artifact of theJenkinsfile
usingrather than the simpler
with the
dir
in fact collapsed with other nearby steps; though that seems to be different in the new buildpacks, theVERSION
file is still supposed to just be a temporary file AFAICT. See jenkins-x/draft-packs#83 for discussion.