-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to get image version from external
This is a test commit. Try to use template in the resource files and render the value from a binding variable. I'm not yet sure if I like this. I think the usage of a shared library should be like lib@v0.0.1 to get a deterministic result. In case of a new docker image is required, update the lib to a new tag.
- Loading branch information
1 parent
25ef0a5
commit 52f3f1a
Showing
4 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
spec: | ||
containers: | ||
- name: doxygen | ||
image: hrektts/doxygen:latest | ||
image: ${TEMPLATE_DOXYGEN_IMAGE} | ||
#image: hrektts/doxygen:latest | ||
# better to use your own | ||
#image: docker.example.com/doxygen:v1.0.0 | ||
tty: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import groovy.text.StreamingTemplateEngine | ||
|
||
def call(input, variables) { | ||
def engine = new StreamingTemplateEngine() | ||
return engine.createTemplate(input).make(variables).toString() | ||
} |