Last active
November 19, 2024 09:42
-
-
Save dnno/6501dee06524cc1ca270060237f854ab to your computer and use it in GitHub Desktop.
Jib configuration
This file contains hidden or 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
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