Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update update workflows #321

Merged
merged 4 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 37 additions & 46 deletions .github/pipeline-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,60 +20,51 @@ docker_credentials:
password: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }}

dependencies:
- name: JDK 11
id: jdk
version_pattern: "11\\.[\\d]+\\.[\\d]+"
purl_pattern: "11\\.[\\d]+\\.[\\d]+"
uses: docker://ghcr.io/paketo-buildpacks/actions/graalvm-dependency:main
with:
glob: graalvm-ce-java11-linux-amd64-.+.tar.gz
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 11
- name: Native Image 11
id: native-image-svm
version_pattern: "11\\.[\\d]+\\.[\\d]+"
cpe_pattern: "[\\d]+\\.[\\d]+\\.[\\d]+\\.?[\\d]?"
purl_pattern: "[\\d]+\\.[\\d]+\\.[\\d]+\\.?[\\d]?"
uses: docker://ghcr.io/paketo-buildpacks/actions/graalvm-dependency:main
with:
glob: native-image-installable-svm-java11-linux-amd64-.+.jar
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 11
- name: JDK 17
id: jdk
version_pattern: "17\\.[\\d]+\\.[\\d]+"
purl_pattern: "17\\.[\\d]+\\.[\\d]+"
uses: docker://ghcr.io/paketo-buildpacks/actions/graalvm-dependency:main
uses: docker://ghcr.io/paketo-buildpacks/actions/github-release-dependency:main
dmikusa marked this conversation as resolved.
Show resolved Hide resolved
with:
glob: graalvm-ce-java17-linux-amd64-.+.tar.gz
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 17
glob: graalvm-community-jdk-.*_linux-x64_bin.tar.gz
owner: graalvm
repository: graalvm-ce-builds
tag_filter: "^jdk-(17\\.[\\d]+\\.[\\d])$"
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 17
- name: JDK 20
id: jdk
version_pattern: "20\\.[\\d]+\\.[\\d]+"
purl_pattern: "20\\.[\\d]+\\.[\\d]+"
uses: docker://ghcr.io/paketo-buildpacks/actions/github-release-dependency:main
with:
glob: graalvm-community-jdk-.*_linux-x64_bin.tar.gz
owner: graalvm
repository: graalvm-ce-builds
tag_filter: "^jdk-(20\\.[\\d]+\\.[\\d])$"
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 20
- name: Native Image 17
id: native-image-svm
version_pattern: "17\\.[\\d]+\\.[\\d]+"
cpe_pattern: "[\\d]+\\.[\\d]+\\.[\\d]+\\.?[\\d]?"
purl_pattern: "[\\d]+\\.[\\d]+\\.[\\d]+\\.?[\\d]?"
uses: docker://ghcr.io/paketo-buildpacks/actions/graalvm-dependency:main
with:
glob: native-image-installable-svm-java17-linux-amd64-.+.jar
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 17
- name: JDK 19
id: jdk
version_pattern: "19\\.[\\d]+\\.[\\d]+"
purl_pattern: "19\\.[\\d]+\\.[\\d]+"
uses: docker://ghcr.io/paketo-buildpacks/actions/graalvm-dependency:main
purl_pattern: "17\\.[\\d]+\\.[\\d]+"
uses: docker://ghcr.io/paketo-buildpacks/actions/github-release-dependency:main
with:
glob: graalvm-ce-java19-linux-amd64-.+.tar.gz
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 19
- name: Native Image 19
glob: graalvm-community-jdk-.*_linux-x64_bin.tar.gz
owner: graalvm
repository: graalvm-ce-builds
tag_filter: "^jdk-(17\\.[\\d]+\\.[\\d])$"
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 17
- name: Native Image 20
id: native-image-svm
version_pattern: "19\\.[\\d]+\\.[\\d]+"
cpe_pattern: "[\\d]+\\.[\\d]+\\.[\\d]+\\.?[\\d]?"
purl_pattern: "[\\d]+\\.[\\d]+\\.[\\d]+\\.?[\\d]?"
uses: docker://ghcr.io/paketo-buildpacks/actions/graalvm-dependency:main
version_pattern: "20\\.[\\d]+\\.[\\d]+"
purl_pattern: "20\\.[\\d]+\\.[\\d]+"
uses: docker://ghcr.io/paketo-buildpacks/actions/github-release-dependency:main
with:
glob: native-image-installable-svm-java19-linux-amd64-.+.jar
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 19
glob: graalvm-community-jdk-.*_linux-x64_bin.tar.gz
owner: graalvm
repository: graalvm-ce-builds
tag_filter: "^jdk-(20\\.[\\d]+\\.[\\d])$"
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 20
7 changes: 5 additions & 2 deletions .github/workflows/pb-update-jdk-17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ jobs:
YJ_VERSION: 5.0.0
- uses: actions/checkout@v3
- id: dependency
uses: docker://ghcr.io/paketo-buildpacks/actions/graalvm-dependency:main
uses: docker://ghcr.io/paketo-buildpacks/actions/github-release-dependency:main
with:
glob: graalvm-ce-java17-linux-amd64-.+.tar.gz
glob: graalvm-community-jdk-.*_linux-x64_bin.tar.gz
owner: graalvm
repository: graalvm-ce-builds
tag_filter: ^jdk-(17\.[\d]+\.[\d])$
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 17
- name: Update Buildpack Dependency
Expand Down
112 changes: 0 additions & 112 deletions .github/workflows/pb-update-jdk-19.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update JDK 11
name: Update JDK 20
"on":
schedule:
- cron: 0 5 * * 1-5
Expand Down Expand Up @@ -42,11 +42,14 @@ jobs:
YJ_VERSION: 5.0.0
- uses: actions/checkout@v3
- id: dependency
uses: docker://ghcr.io/paketo-buildpacks/actions/graalvm-dependency:main
uses: docker://ghcr.io/paketo-buildpacks/actions/github-release-dependency:main
with:
glob: graalvm-ce-java11-linux-amd64-.+.tar.gz
glob: graalvm-community-jdk-.*_linux-x64_bin.tar.gz
owner: graalvm
repository: graalvm-ce-builds
tag_filter: ^jdk-(20\.[\d]+\.[\d])$
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 11
version: 20
- name: Update Buildpack Dependency
id: buildpack
run: |
Expand Down Expand Up @@ -91,22 +94,22 @@ jobs:
CPE_PATTERN: ""
ID: jdk
PURL: ${{ steps.dependency.outputs.purl }}
PURL_PATTERN: 11\.[\d]+\.[\d]+
PURL_PATTERN: 20\.[\d]+\.[\d]+
SHA256: ${{ steps.dependency.outputs.sha256 }}
URI: ${{ steps.dependency.outputs.uri }}
VERSION: ${{ steps.dependency.outputs.version }}
VERSION_PATTERN: 11\.[\d]+\.[\d]+
VERSION_PATTERN: 20\.[\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 11` from `${{ steps.buildpack.outputs.old-version }}` to `${{ steps.buildpack.outputs.new-version }}`.
branch: update/buildpack/jdk-11
body: Bumps `JDK 20` from `${{ steps.buildpack.outputs.old-version }}` to `${{ steps.buildpack.outputs.new-version }}`.
branch: update/buildpack/jdk-20
commit-message: |-
Bump JDK 11 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}
Bump JDK 20 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}

Bumps JDK 11 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 }}.
delete-branch: true
labels: ${{ steps.buildpack.outputs.version-label }}, type:dependency-upgrade
signoff: true
title: Bump JDK 11 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}
title: Bump JDK 20 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
11 changes: 7 additions & 4 deletions .github/workflows/pb-update-native-image-17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ jobs:
YJ_VERSION: 5.0.0
- uses: actions/checkout@v3
- id: dependency
uses: docker://ghcr.io/paketo-buildpacks/actions/graalvm-dependency:main
uses: docker://ghcr.io/paketo-buildpacks/actions/github-release-dependency:main
with:
glob: native-image-installable-svm-java17-linux-amd64-.+.jar
glob: graalvm-community-jdk-.*_linux-x64_bin.tar.gz
owner: graalvm
repository: graalvm-ce-builds
tag_filter: ^jdk-(17\.[\d]+\.[\d])$
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
version: 17
- name: Update Buildpack Dependency
Expand Down Expand Up @@ -88,10 +91,10 @@ jobs:
echo "version-label=${LABEL}" >> "$GITHUB_OUTPUT"
env:
CPE: ${{ steps.dependency.outputs.cpe }}
CPE_PATTERN: '[\d]+\.[\d]+\.[\d]+\.?[\d]?'
CPE_PATTERN: ""
ID: native-image-svm
PURL: ${{ steps.dependency.outputs.purl }}
PURL_PATTERN: '[\d]+\.[\d]+\.[\d]+\.?[\d]?'
PURL_PATTERN: 17\.[\d]+\.[\d]+
SHA256: ${{ steps.dependency.outputs.sha256 }}
URI: ${{ steps.dependency.outputs.uri }}
VERSION: ${{ steps.dependency.outputs.version }}
Expand Down
Loading
Loading