-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #416 from paketo-buildpacks/update/pipeline
Bump pipeline from 1.41.2 to 1.41.2
- Loading branch information
Showing
4 changed files
with
430 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,108 @@ | ||
name: Update JDK 23 ARM64 | ||
"on": | ||
schedule: | ||
- cron: 0 5 * * 1-5 | ||
workflow_dispatch: {} | ||
jobs: | ||
update: | ||
name: Update Buildpack Dependency | ||
runs-on: | ||
- ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
- name: Install update-buildpack-dependency | ||
run: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest | ||
- uses: buildpacks/github-actions/setup-tools@v5.7.2 | ||
with: | ||
crane-version: 0.19.1 | ||
yj-version: 5.1.0 | ||
- uses: actions/checkout@v4 | ||
- id: dependency | ||
uses: docker://ghcr.io/paketo-buildpacks/actions/github-release-dependency:main | ||
with: | ||
arch: arm64 | ||
glob: graalvm-community-jdk-.*_linux-aarch64_bin.tar.gz | ||
owner: graalvm | ||
repository: graalvm-ce-builds | ||
tag_filter: ^jdk-(23\.[\d]+\.[\d])$ | ||
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} | ||
version: 23 | ||
- name: Update Buildpack Dependency | ||
id: buildpack | ||
run: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
VERSION_DEPS=$(yj -tj < buildpack.toml | jq -r ".metadata.dependencies[] | select( .id == env.ID ) | select( .version | test( env.VERSION_PATTERN ) )") | ||
ARCH=${ARCH:-amd64} | ||
OLD_VERSION=$(echo "$VERSION_DEPS" | jq -r 'select( .purl | contains( env.ARCH ) ) | .version') | ||
if [ -z "$OLD_VERSION" ]; then | ||
ARCH="" # empty means noarch | ||
OLD_VERSION=$(echo "$VERSION_DEPS" | jq -r ".version") | ||
fi | ||
update-buildpack-dependency \ | ||
--buildpack-toml buildpack.toml \ | ||
--id "${ID}" \ | ||
--arch "${ARCH}" \ | ||
--version-pattern "${VERSION_PATTERN}" \ | ||
--version "${VERSION}" \ | ||
--cpe-pattern "${CPE_PATTERN:-}" \ | ||
--cpe "${CPE:-}" \ | ||
--purl-pattern "${PURL_PATTERN:-}" \ | ||
--purl "${PURL:-}" \ | ||
--uri "${URI}" \ | ||
--sha256 "${SHA256}" \ | ||
--source "${SOURCE_URI}" \ | ||
--source-sha256 "${SOURCE_SHA256}" | ||
git add buildpack.toml | ||
git checkout -- . | ||
if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$VERSION" | awk -F '.' '{print $1}')" ]; then | ||
LABEL="semver:major" | ||
elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$VERSION" | awk -F '.' '{print $2}')" ]; then | ||
LABEL="semver:minor" | ||
else | ||
LABEL="semver:patch" | ||
fi | ||
echo "old-version=${OLD_VERSION}" >> "$GITHUB_OUTPUT" | ||
echo "new-version=${VERSION}" >> "$GITHUB_OUTPUT" | ||
echo "version-label=${LABEL}" >> "$GITHUB_OUTPUT" | ||
env: | ||
ARCH: arm64 | ||
CPE: ${{ steps.dependency.outputs.cpe }} | ||
CPE_PATTERN: "" | ||
ID: jdk | ||
PURL: ${{ steps.dependency.outputs.purl }} | ||
PURL_PATTERN: 23\.[\d]+\.[\d]+ | ||
SHA256: ${{ steps.dependency.outputs.sha256 }} | ||
SOURCE_SHA256: ${{ steps.dependency.outputs.source_sha256 }} | ||
SOURCE_URI: ${{ steps.dependency.outputs.source }} | ||
URI: ${{ steps.dependency.outputs.uri }} | ||
VERSION: ${{ steps.dependency.outputs.version }} | ||
VERSION_PATTERN: 23\.[\d]+\.[\d]+ | ||
- uses: peter-evans/create-pull-request@v6 | ||
with: | ||
author: ${{ secrets.JAVA_GITHUB_USERNAME }} <${{ secrets.JAVA_GITHUB_USERNAME }}@users.noreply.github.com> | ||
body: Bumps `JDK 23 ARM64` from `${{ steps.buildpack.outputs.old-version }}` to `${{ steps.buildpack.outputs.new-version }}`. | ||
branch: update/buildpack/jdk-23-arm-64 | ||
commit-message: |- | ||
Bump JDK 23 ARM64 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} | ||
Bumps JDK 23 ARM64 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 23 ARM64 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} | ||
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} |
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,107 @@ | ||
name: Update JDK 23 | ||
"on": | ||
schedule: | ||
- cron: 0 5 * * 1-5 | ||
workflow_dispatch: {} | ||
jobs: | ||
update: | ||
name: Update Buildpack Dependency | ||
runs-on: | ||
- ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
- name: Install update-buildpack-dependency | ||
run: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest | ||
- uses: buildpacks/github-actions/setup-tools@v5.7.2 | ||
with: | ||
crane-version: 0.19.1 | ||
yj-version: 5.1.0 | ||
- uses: actions/checkout@v4 | ||
- id: dependency | ||
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-(23\.[\d]+\.[\d])$ | ||
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} | ||
version: 23 | ||
- name: Update Buildpack Dependency | ||
id: buildpack | ||
run: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
VERSION_DEPS=$(yj -tj < buildpack.toml | jq -r ".metadata.dependencies[] | select( .id == env.ID ) | select( .version | test( env.VERSION_PATTERN ) )") | ||
ARCH=${ARCH:-amd64} | ||
OLD_VERSION=$(echo "$VERSION_DEPS" | jq -r 'select( .purl | contains( env.ARCH ) ) | .version') | ||
if [ -z "$OLD_VERSION" ]; then | ||
ARCH="" # empty means noarch | ||
OLD_VERSION=$(echo "$VERSION_DEPS" | jq -r ".version") | ||
fi | ||
update-buildpack-dependency \ | ||
--buildpack-toml buildpack.toml \ | ||
--id "${ID}" \ | ||
--arch "${ARCH}" \ | ||
--version-pattern "${VERSION_PATTERN}" \ | ||
--version "${VERSION}" \ | ||
--cpe-pattern "${CPE_PATTERN:-}" \ | ||
--cpe "${CPE:-}" \ | ||
--purl-pattern "${PURL_PATTERN:-}" \ | ||
--purl "${PURL:-}" \ | ||
--uri "${URI}" \ | ||
--sha256 "${SHA256}" \ | ||
--source "${SOURCE_URI}" \ | ||
--source-sha256 "${SOURCE_SHA256}" | ||
git add buildpack.toml | ||
git checkout -- . | ||
if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$VERSION" | awk -F '.' '{print $1}')" ]; then | ||
LABEL="semver:major" | ||
elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$VERSION" | awk -F '.' '{print $2}')" ]; then | ||
LABEL="semver:minor" | ||
else | ||
LABEL="semver:patch" | ||
fi | ||
echo "old-version=${OLD_VERSION}" >> "$GITHUB_OUTPUT" | ||
echo "new-version=${VERSION}" >> "$GITHUB_OUTPUT" | ||
echo "version-label=${LABEL}" >> "$GITHUB_OUTPUT" | ||
env: | ||
ARCH: "" | ||
CPE: ${{ steps.dependency.outputs.cpe }} | ||
CPE_PATTERN: "" | ||
ID: jdk | ||
PURL: ${{ steps.dependency.outputs.purl }} | ||
PURL_PATTERN: 23\.[\d]+\.[\d]+ | ||
SHA256: ${{ steps.dependency.outputs.sha256 }} | ||
SOURCE_SHA256: ${{ steps.dependency.outputs.source_sha256 }} | ||
SOURCE_URI: ${{ steps.dependency.outputs.source }} | ||
URI: ${{ steps.dependency.outputs.uri }} | ||
VERSION: ${{ steps.dependency.outputs.version }} | ||
VERSION_PATTERN: 23\.[\d]+\.[\d]+ | ||
- uses: peter-evans/create-pull-request@v6 | ||
with: | ||
author: ${{ secrets.JAVA_GITHUB_USERNAME }} <${{ secrets.JAVA_GITHUB_USERNAME }}@users.noreply.github.com> | ||
body: Bumps `JDK 23` from `${{ steps.buildpack.outputs.old-version }}` to `${{ steps.buildpack.outputs.new-version }}`. | ||
branch: update/buildpack/jdk-23 | ||
commit-message: |- | ||
Bump JDK 23 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} | ||
Bumps JDK 23 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 23 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} | ||
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} |
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,108 @@ | ||
name: Update Native Image 23 ARM64 | ||
"on": | ||
schedule: | ||
- cron: 0 5 * * 1-5 | ||
workflow_dispatch: {} | ||
jobs: | ||
update: | ||
name: Update Buildpack Dependency | ||
runs-on: | ||
- ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
- name: Install update-buildpack-dependency | ||
run: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest | ||
- uses: buildpacks/github-actions/setup-tools@v5.7.2 | ||
with: | ||
crane-version: 0.19.1 | ||
yj-version: 5.1.0 | ||
- uses: actions/checkout@v4 | ||
- id: dependency | ||
uses: docker://ghcr.io/paketo-buildpacks/actions/github-release-dependency:main | ||
with: | ||
arch: arm64 | ||
glob: graalvm-community-jdk-.*_linux-aarch64_bin.tar.gz | ||
owner: graalvm | ||
repository: graalvm-ce-builds | ||
tag_filter: ^jdk-(23\.[\d]+\.[\d])$ | ||
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} | ||
version: 23 | ||
- name: Update Buildpack Dependency | ||
id: buildpack | ||
run: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
VERSION_DEPS=$(yj -tj < buildpack.toml | jq -r ".metadata.dependencies[] | select( .id == env.ID ) | select( .version | test( env.VERSION_PATTERN ) )") | ||
ARCH=${ARCH:-amd64} | ||
OLD_VERSION=$(echo "$VERSION_DEPS" | jq -r 'select( .purl | contains( env.ARCH ) ) | .version') | ||
if [ -z "$OLD_VERSION" ]; then | ||
ARCH="" # empty means noarch | ||
OLD_VERSION=$(echo "$VERSION_DEPS" | jq -r ".version") | ||
fi | ||
update-buildpack-dependency \ | ||
--buildpack-toml buildpack.toml \ | ||
--id "${ID}" \ | ||
--arch "${ARCH}" \ | ||
--version-pattern "${VERSION_PATTERN}" \ | ||
--version "${VERSION}" \ | ||
--cpe-pattern "${CPE_PATTERN:-}" \ | ||
--cpe "${CPE:-}" \ | ||
--purl-pattern "${PURL_PATTERN:-}" \ | ||
--purl "${PURL:-}" \ | ||
--uri "${URI}" \ | ||
--sha256 "${SHA256}" \ | ||
--source "${SOURCE_URI}" \ | ||
--source-sha256 "${SOURCE_SHA256}" | ||
git add buildpack.toml | ||
git checkout -- . | ||
if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$VERSION" | awk -F '.' '{print $1}')" ]; then | ||
LABEL="semver:major" | ||
elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$VERSION" | awk -F '.' '{print $2}')" ]; then | ||
LABEL="semver:minor" | ||
else | ||
LABEL="semver:patch" | ||
fi | ||
echo "old-version=${OLD_VERSION}" >> "$GITHUB_OUTPUT" | ||
echo "new-version=${VERSION}" >> "$GITHUB_OUTPUT" | ||
echo "version-label=${LABEL}" >> "$GITHUB_OUTPUT" | ||
env: | ||
ARCH: arm64 | ||
CPE: ${{ steps.dependency.outputs.cpe }} | ||
CPE_PATTERN: "" | ||
ID: native-image-svm | ||
PURL: ${{ steps.dependency.outputs.purl }} | ||
PURL_PATTERN: 23\.[\d]+\.[\d]+ | ||
SHA256: ${{ steps.dependency.outputs.sha256 }} | ||
SOURCE_SHA256: ${{ steps.dependency.outputs.source_sha256 }} | ||
SOURCE_URI: ${{ steps.dependency.outputs.source }} | ||
URI: ${{ steps.dependency.outputs.uri }} | ||
VERSION: ${{ steps.dependency.outputs.version }} | ||
VERSION_PATTERN: 23\.[\d]+\.[\d]+ | ||
- uses: peter-evans/create-pull-request@v6 | ||
with: | ||
author: ${{ secrets.JAVA_GITHUB_USERNAME }} <${{ secrets.JAVA_GITHUB_USERNAME }}@users.noreply.github.com> | ||
body: Bumps `Native Image 23 ARM64` from `${{ steps.buildpack.outputs.old-version }}` to `${{ steps.buildpack.outputs.new-version }}`. | ||
branch: update/buildpack/native-image-23-arm-64 | ||
commit-message: |- | ||
Bump Native Image 23 ARM64 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} | ||
Bumps Native Image 23 ARM64 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 Native Image 23 ARM64 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} | ||
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} |
Oops, something went wrong.