-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(updatecli): new manifest for jdk21 (#805)
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
name: Bump JDK21 version | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
temurin21-binaries: | ||
kind: "github" | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "adoptium" | ||
repository: "temurin21-binaries" | ||
token: '{{ requiredEnv .github.token }}' | ||
branch: "main" | ||
|
||
sources: | ||
lastReleaseVersion: | ||
kind: gittag | ||
name: Get the latest Adoptium JDK21 version | ||
scmid: temurin21-binaries | ||
spec: | ||
versionfilter: | ||
kind: regex | ||
pattern: ".*-ea-.*" | ||
transformers: | ||
- trimprefix: "jdk-" | ||
|
||
conditions: | ||
checkIfReleaseIsAvailable: | ||
kind: shell | ||
spec: | ||
command: bash ./updatecli/scripts/check-jdk.sh # source input value passed as argument | ||
environments: | ||
- name: PATH | ||
|
||
targets: | ||
updateJDK21Version: | ||
name: Update the JDK21 version in the Packer default values | ||
kind: yaml | ||
spec: | ||
file: "provisioning/tools-versions.yml" | ||
key: "$.jdk21_version" | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
spec: | ||
title: Bump JDK21 version to {{ source "lastReleaseVersion" }} | ||
labels: | ||
- enhancement | ||
- jdk21 |