Skip to content

Commit

Permalink
chore(updatecli): new manifest for jdk21 (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 authored Sep 12, 2023
1 parent be52a40 commit ed0d7dd
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions updatecli/updatecli.d/jdk21.yml
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

0 comments on commit ed0d7dd

Please sign in to comment.