-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
32 lines (28 loc) · 777 Bytes
/
build.gradle
File metadata and controls
32 lines (28 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
plugins {
id 'org.springframework.boot' version '3.2.0'
id 'io.spring.dependency-management' version '1.1.0'
id "com.google.cloud.tools.jib" version "3.4.0"
id 'java'
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(19)
}
}
var outputImage = 'togetherjava.org:5001/togetherjava/website:' + System.getenv('BRANCH_NAME') ?: 'latest'
jib {
from.image = 'eclipse-temurin:19'
to {
image = outputImage
auth {
username = System.getenv('REGISTRY_USER') ?: ''
password = System.getenv('REGISTRY_PASSWORD') ?: ''
}
}
container {
setCreationTime(Instant.now().toString())
}
}