Skip to content

Commit

Permalink
Replace Java 20 with 21
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonydahanne committed Sep 20, 2023
1 parent aad5852 commit fc10652
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/pipeline-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ dependencies:
with:
glob: amazon-corretto-[\d.-]+-linux-x64.tar.gz
repository: corretto-17
- name: JDK 20
- name: JDK 21
id: jdk
version_pattern: "20\\.[\\d]+\\.[\\d]+"
version_pattern: "21\\.[\\d]+\\.[\\d]+"
uses: docker://ghcr.io/paketo-buildpacks/actions/amazon-corretto-dependency:main
with:
glob: amazon-corretto-[\d.-]+-linux-x64.tar.gz
repository: corretto-20
repository: corretto-21
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update JDK 20
name: Update JDK 21
"on":
schedule:
- cron: 0 5 * * 1-5
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
uses: docker://ghcr.io/paketo-buildpacks/actions/amazon-corretto-dependency:main
with:
glob: amazon-corretto-[\d.-]+-linux-x64.tar.gz
repository: corretto-20
repository: corretto-21
- name: Update Buildpack Dependency
id: buildpack
run: |
Expand Down Expand Up @@ -94,18 +94,18 @@ jobs:
SHA256: ${{ steps.dependency.outputs.sha256 }}
URI: ${{ steps.dependency.outputs.uri }}
VERSION: ${{ steps.dependency.outputs.version }}
VERSION_PATTERN: 20\.[\d]+\.[\d]+
VERSION_PATTERN: 21\.[\d]+\.[\d]+
- uses: peter-evans/create-pull-request@v5
with:
author: ${{ secrets.JAVA_GITHUB_USERNAME }} <${{ secrets.JAVA_GITHUB_USERNAME }}@users.noreply.github.com>
body: Bumps `JDK 20` from `${{ steps.buildpack.outputs.old-version }}` to `${{ steps.buildpack.outputs.new-version }}`.
branch: update/buildpack/jdk-20
body: Bumps `JDK 21` from `${{ steps.buildpack.outputs.old-version }}` to `${{ steps.buildpack.outputs.new-version }}`.
branch: update/buildpack/jdk-21
commit-message: |-
Bump JDK 20 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}
Bump JDK 21 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}
Bumps JDK 20 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}.
Bumps JDK 21 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}.
delete-branch: true
labels: ${{ steps.buildpack.outputs.version-label }}, type:dependency-upgrade
signoff: true
title: Bump JDK 20 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}
title: Bump JDK 21 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ api = "0.7"
uri = "https://aws.amazon.com/corretto/faqs/#Licensing_and_Open_Source"

[[metadata.dependencies]]
cpes = ["cpe:2.3:a:oracle:jdk:20.0.2:*:*:*:*:*:*:*", "cpe:2.3:a:amazon:corretto:20.0.2:*:*:*:*:*:*:*"]
cpes = ["cpe:2.3:a:oracle:jdk:21.0.0:*:*:*:*:*:*:*", "cpe:2.3:a:amazon:corretto:21.0.0:*:*:*:*:*:*:*"]
id = "jdk"
name = "Corretto JDK"
purl = "pkg:generic/amazon/corretto-jdk@20.0.2"
sha256 = "3b60fe04966d0aa762bf1fc2974ad239cf7ab887a657a9e7e3c75a9310e34db2"
purl = "pkg:generic/amazon/corretto-jdk@21.0.0"
sha256 = "1b7ae2cabb15b69867511a08e0091bd2e2df67064ff444bbe883900819801e4b"
stacks = ["io.buildpacks.stacks.bionic", "io.paketo.stacks.tiny", "*"]
uri = "https://corretto.aws/downloads/resources/20.0.2.10.1/amazon-corretto-20.0.2.10.1-linux-x64.tar.gz"
version = "20.0.2"
uri = "https://corretto.aws/downloads/resources/21.0.0.35.1/amazon-corretto-21.0.0.35.1-linux-x64.tar.gz"
version = "21.0.0"

[[metadata.dependencies.licenses]]
type = "GPL-2.0 WITH Classpath-exception-2.0"
Expand Down

0 comments on commit fc10652

Please sign in to comment.