Skip to content

Commit dd4c6fd

Browse files
authored
feat(docs): add temurin condition (#1874)
* feat(docs) add temurin condition * Update default.yaml
1 parent 8d7274b commit dd4c6fd

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

assets/code_example/docs/plugins/resources/temurin/updatecli.d/default.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,45 @@ sources:
4646
version: "17.0.2"
4747
operatingsystem: windows
4848
result: signature_url
49+
50+
conditions:
51+
checkLatestTemurin:
52+
name: Temurin Check
53+
kind: temurin
54+
disablesourceinput: true
55+
checkLatestTemurinGA17LinuxArm64:
56+
name: Temurin Check
57+
kind: temurin
58+
disablesourceinput: true
59+
spec:
60+
releaseline: feature
61+
releasetype: ga
62+
featureversion: 17
63+
architecture: aarch64
64+
operatingsystem: linux
65+
checkFromSpecifiedVersion:
66+
name: Temurin Check
67+
kind: temurin
68+
disablesourceinput: true
69+
spec:
70+
specificversion: '{{ source "getLastGA17Version" }}'
71+
checkListOfPlatforms:
72+
name: Temurin Check
73+
kind: temurin
74+
disablesourceinput: true
75+
spec:
76+
specificversion: 17.0.13+11 # Known to provide all existing platform specified below
77+
platforms:
78+
- linux/x64
79+
- linux/aarch64
80+
- linux/s390x
81+
- alpine-linux/x64
82+
- windows/x64
83+
checkPlatformForSourceInput:
84+
name: Temurin Check
85+
kind: temurin
86+
sourceid: getLatestLtsVersion
87+
spec:
88+
platforms:
89+
- linux/x64
90+
- linux/aarch64

content/en/docs/plugins/resource/temurin.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ plugins:
2020
[cols="1^,1^,1^",options=header]
2121
|===
2222
| source | condition | target
23-
| ✔ | ✗ | ✗
23+
| ✔ | ✔ | ✗
2424
|===
2525

2626
== Description
2727

2828
**source**
2929

30-
The Temurin (Adoptium) "source" retrieves a release name, Installer URL, Checskum URL or signature URL from Adoptium (link:https://adoptium.net/[]) using their API (link:https://api.adoptium.net/[]).
30+
The Temurin (Adoptium) "source" retrieves a release name, Installer URL, Checksum URL or signature URL from Adoptium (link:https://adoptium.net/[]) using their API (link:https://api.adoptium.net/[]).
3131

3232
**condition**
3333

34-
Unsupported
34+
The Temurin (Adoptium) "condition" verifies if a given Temurin Adoptium (link:https://adoptium.net/[]) release exists using their API (link:https://api.adoptium.net/[]). It can perform verification for a collection of platforms (Operating System + CPU Architecture).
3535

3636
**target**
3737

0 commit comments

Comments
 (0)