META-INF.jreleaser.templates.binary.jib.build.yml.tpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jreleaser-templates Show documentation
Show all versions of jreleaser-templates Show documentation
JReleaser packager templates
The newest version!
# {{jreleaserCreationStamp}}
apiVersion: jib/v1alpha1
kind: BuildFile
from:
image: {{jibBaseImage}}
{{#jibCreationTime}}
creationTime: "{{.}}"
{{/jibCreationTime}}
format: {{jibFormat}}
{{#hasJibEnvironment}}
environment:
{{#jibEnvironment}}
{{.}}
{{/jibEnvironment}}
{{/hasJibEnvironment}}
labels:
{{#jibLabels}}
{{.}}
{{/jibLabels}}
{{#hasJibVolumes}}
volumes:
{{#jibVolumes}}
- "{{.}}"
{{/jibVolumes}}
{{/hasJibVolumes}}
{{#hasJibExposedPorts}}
exposedPorts:
{{#jibExposedPorts}}
- "{{.}}"
{{/jibExposedPorts}}
{{/hasJibExposedPorts}}
{{#jibUser}}
user: "{{.}}"
{{/jibUser}}
workingDirectory: "{{jibWorkingDirectory}}"
entrypoint: ["{{jibWorkingDirectory}}/{{distributionArtifactRootEntryName}}/bin/{{distributionExecutableUnix}}"]
layers:
entries:
- name: {{distributionName}}
files:
- src: assembly/{{distributionArtifactRootEntryName}}/bin
dest: {{jibWorkingDirectory}}/{{distributionArtifactRootEntryName}}/bin
properties:
filePermissions: 755
- src: assembly/{{distributionArtifactRootEntryName}}
dest: {{jibWorkingDirectory}}/{{distributionArtifactRootEntryName}}
excludes:
- "bin/*"
- src: assembly
dest: {{jibWorkingDirectory}}
excludes:
- "{{distributionArtifactRootEntryName}}"