Skip to content

Instantly share code, notes, and snippets.

@dnno
Last active November 19, 2024 09:42
Show Gist options
  • Save dnno/6501dee06524cc1ca270060237f854ab to your computer and use it in GitHub Desktop.
Save dnno/6501dee06524cc1ca270060237f854ab to your computer and use it in GitHub Desktop.
Jib configuration
jib {
container {
creationTime.set(DateTimeFormatter.ISO_DATE_TIME.format(Instant.now().atZone(ZoneId.of("UTC"))))
}
to {
image = "<redacted_registry_url>/<redacted_repository_name>/<redacted_image_name>"
tags = if (project.hasProperty("app.version")) {
setOf("v" + project.property("app.version").toString())
} else {
setOf("dev-snapshot")
}
auth {
username = if (project.hasProperty("docker.repo.username"))
project.property("docker.repo.username").toString() else ""
password = if (project.hasProperty("docker.repo.password"))
project.property("docker.repo.password").toString() else ""
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment