-
Notifications
You must be signed in to change notification settings - Fork 35
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
- Adds initial templating support for build
#159
Conversation
- Fixes a bug in `build` where `--pull` wasn't being set
The formatting required to get a common date is a bit complex. |
@SteveLasker LGTM. #161 for first classing and simplifying it |
@@ -139,7 +137,6 @@ func TestOverrideValuesWithBuildInfo(t *testing.T) { | |||
// Base properties | |||
{"{{.Build.ID}}", expectedID}, | |||
{"{{.Build.Commit}}", expectedCommit}, | |||
{"{{ .Build.Tag }}", expectedTag}, | |||
{"{{ .Build.Repository}}", expectedRepo}, |
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.
[](start = 6, length = 1)
extra space
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.
@northtyphoon this one's on purpose, to make sure we can render it correctly with arbitrary white spaces on the side
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.
Purpose of the PR:
build
build
where--pull
wasn't being set{{.Build.Tag}}
for now since it conflicts with--tag
onbuild
(and I'm not sure of its use case still)Fixes #139