Skip to content

Commit 81bc68a

Browse files
authored
feat: init dockerfile guide (#2005)
* feat: init dockerfile guide * chore: cleaning comment and rewording Signed-off-by: Olblak <me@olblak.com> --------- Signed-off-by: Olblak <me@olblak.com>
1 parent 4c8825e commit 81bc68a

File tree

4 files changed

+490
-0
lines changed

4 files changed

+490
-0
lines changed
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
---
2+
name: Bump JDK17 version
3+
4+
scms:
5+
default:
6+
kind: github
7+
spec:
8+
user: "{{ .github.user }}"
9+
email: "{{ .github.email }}"
10+
owner: "{{ .github.owner }}"
11+
repository: "{{ .github.repository }}"
12+
token: "{{ requiredEnv .github.token }}"
13+
username: "{{ .github.username }}"
14+
branch: "{{ .github.branch }}"
15+
16+
sources:
17+
lastVersion:
18+
kind: temurin
19+
name: Get the latest Adoptium JDK17 version
20+
spec:
21+
featureversion: 17
22+
transformers:
23+
- trimprefix: "jdk-"
24+
25+
conditions:
26+
checkTemurinAllReleases:
27+
name: Check if the "<lastVersion>" is available for all platforms
28+
kind: temurin
29+
sourceid: lastVersion
30+
spec:
31+
featureversion: 17
32+
platforms:
33+
- alpine-linux/x64
34+
- linux/x64
35+
- linux/aarch64
36+
- linux/ppc64le
37+
- linux/s390x
38+
- windows/x64
39+
40+
targets:
41+
## Global config files
42+
setJDK17VersionDockerBake:
43+
name: "Bump JDK17 version for Linux images in the docker-bake.hcl file"
44+
kind: hcl
45+
transformers:
46+
- replacer:
47+
from: "+"
48+
to: "_"
49+
spec:
50+
file: docker-bake.hcl
51+
path: variable.JAVA17_VERSION.default
52+
scmid: default
53+
setJDK17VersionWindowsDockerCompose:
54+
name: "Bump JDK17 version in build-windows.yaml"
55+
kind: yaml
56+
transformers:
57+
- replacer:
58+
from: "+"
59+
to: "_"
60+
spec:
61+
files:
62+
- build-windows.yaml
63+
key: $.services.jdk17.build.args.JAVA_VERSION
64+
scmid: default
65+
## Dockerfiles
66+
# Setting default JAVA_VERSION ARG to current Jenkins default JDK17
67+
setJDK17VersionAlpine:
68+
name: "Bump JDK17 version for Linux images in the Alpine Linux Dockerfile"
69+
kind: dockerfile
70+
transformers:
71+
- replacer:
72+
from: "+"
73+
to: "_"
74+
spec:
75+
file: alpine/hotspot/Dockerfile
76+
instruction:
77+
keyword: ARG
78+
matcher: JAVA_VERSION
79+
scmid: default
80+
setJDK17VersionDebian:
81+
name: "Bump JDK17 version for Linux images in the Debian Dockerfiles"
82+
kind: dockerfile
83+
transformers:
84+
- replacer:
85+
from: "+"
86+
to: "_"
87+
spec:
88+
files:
89+
- debian/bookworm/hotspot/Dockerfile
90+
- debian/bookworm-slim/hotspot/Dockerfile
91+
instruction:
92+
keyword: ARG
93+
matcher: JAVA_VERSION
94+
scmid: default
95+
setJDK17VersionRhel:
96+
name: "Bump JDK17 version for Linux images in the Rhel Dockerfile"
97+
kind: dockerfile
98+
transformers:
99+
- replacer:
100+
from: "+"
101+
to: "_"
102+
spec:
103+
file: rhel/ubi9/hotspot/Dockerfile
104+
instruction:
105+
keyword: ARG
106+
matcher: JAVA_VERSION
107+
scmid: default
108+
setJDK17VersionWindowsDockerImage:
109+
name: "Bump default JDK17 version for Linux images in the Windows Dockerfile"
110+
kind: dockerfile
111+
transformers:
112+
- replacer:
113+
from: "+"
114+
to: "_"
115+
spec:
116+
file: windows/windowsservercore/hotspot/Dockerfile
117+
instruction:
118+
keyword: ARG
119+
matcher: JAVA_VERSION
120+
scmid: default
121+
122+
actions:
123+
default:
124+
kind: github/pullrequest
125+
scmid: default
126+
title: Bump JDK17 version to {{ source "lastVersion" }}
127+
spec:
128+
labels:
129+
- dependencies
130+
- jdk17
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
github:
2+
user: "GitHub Actions"
3+
email: "41898282+github-actions[bot]@users.noreply.github.com"
4+
username: "github-actions"
5+
token: "UPDATECLI_GITHUB_TOKEN"
6+
branch: "master"
7+
owner: "jenkinsci"
8+
repository: "docker"# Values file

0 commit comments

Comments
 (0)