diff --git a/.github/workflows/update-jdk-14.yml b/.github/workflows/update-jdk-14.yml deleted file mode 100644 index a1f2836..0000000 --- a/.github/workflows/update-jdk-14.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: Update JDK 14 -"on": - schedule: - - cron: 30 * * * * - workflow_dispatch: {} -jobs: - update: - name: Update Buildpack Dependency - runs-on: - - ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 - with: - go-version: "1.15" - - name: Install update-buildpack-dependency - run: | - #!/usr/bin/env bash - - set -euo pipefail - - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency - - name: Install yj - run: | - #!/usr/bin/env bash - - set -euo pipefail - - mkdir -p "${HOME}"/bin - echo "${HOME}/bin" >> "${GITHUB_PATH}" - - curl \ - --location \ - --show-error \ - --silent \ - --output "${HOME}"/bin/yj \ - "https://github.com/sclevine/yj/releases/download/v${YJ_VERSION}/yj-linux" - - chmod +x "${HOME}"/bin/yj - env: - YJ_VERSION: 5.0.0 - - id: dependency - uses: docker://ghcr.io/paketo-buildpacks/actions/azul-zulu-dependency:main - with: - type: jdk - version: "14" - - id: buildpack - name: Update Buildpack Dependency - run: | - #!/usr/bin/env bash - - set -euo pipefail - - OLD_VERSION=$(yj -tj < buildpack.toml | jq -r " - .metadata.dependencies[] | - select( .id == env.ID ) | - select( .version | test( env.VERSION_PATTERN ) ) | - .version") - - update-buildpack-dependency \ - --buildpack-toml buildpack.toml \ - --id "${ID}" \ - --version-pattern "${VERSION_PATTERN}" \ - --version "${VERSION}" \ - --uri "${URI}" \ - --sha256 "${SHA256}" - - git add buildpack.toml - git checkout -- . - - echo "::set-output name=old-version::${OLD_VERSION}" - echo "::set-output name=new-version::${VERSION}" - env: - ID: jdk - SHA256: ${{ steps.dependency.outputs.sha256 }} - URI: ${{ steps.dependency.outputs.uri }} - VERSION: ${{ steps.dependency.outputs.version }} - VERSION_PATTERN: 14\.[\d]+\.[\d]+ - - uses: peter-evans/create-pull-request@v3 - with: - body: Bumps `JDK 14` from `${{ steps.buildpack.outputs.old-version }}` to `${{ steps.buildpack.outputs.new-version }}`. - branch: update/buildpack/jdk-14 - commit-message: |- - Bump JDK 14 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} - - Bumps JDK 14 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}. - delete-branch: true - labels: semver:minor, type:dependency-upgrade - signoff: true - title: Bump JDK 14 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/update-jre-14.yml b/.github/workflows/update-jre-14.yml deleted file mode 100644 index 4f168a4..0000000 --- a/.github/workflows/update-jre-14.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: Update JRE 14 -"on": - schedule: - - cron: 30 * * * * - workflow_dispatch: {} -jobs: - update: - name: Update Buildpack Dependency - runs-on: - - ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 - with: - go-version: "1.15" - - name: Install update-buildpack-dependency - run: | - #!/usr/bin/env bash - - set -euo pipefail - - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency - - name: Install yj - run: | - #!/usr/bin/env bash - - set -euo pipefail - - mkdir -p "${HOME}"/bin - echo "${HOME}/bin" >> "${GITHUB_PATH}" - - curl \ - --location \ - --show-error \ - --silent \ - --output "${HOME}"/bin/yj \ - "https://github.com/sclevine/yj/releases/download/v${YJ_VERSION}/yj-linux" - - chmod +x "${HOME}"/bin/yj - env: - YJ_VERSION: 5.0.0 - - id: dependency - uses: docker://ghcr.io/paketo-buildpacks/actions/azul-zulu-dependency:main - with: - type: headfull - version: "14" - - id: buildpack - name: Update Buildpack Dependency - run: | - #!/usr/bin/env bash - - set -euo pipefail - - OLD_VERSION=$(yj -tj < buildpack.toml | jq -r " - .metadata.dependencies[] | - select( .id == env.ID ) | - select( .version | test( env.VERSION_PATTERN ) ) | - .version") - - update-buildpack-dependency \ - --buildpack-toml buildpack.toml \ - --id "${ID}" \ - --version-pattern "${VERSION_PATTERN}" \ - --version "${VERSION}" \ - --uri "${URI}" \ - --sha256 "${SHA256}" - - git add buildpack.toml - git checkout -- . - - echo "::set-output name=old-version::${OLD_VERSION}" - echo "::set-output name=new-version::${VERSION}" - env: - ID: jre - SHA256: ${{ steps.dependency.outputs.sha256 }} - URI: ${{ steps.dependency.outputs.uri }} - VERSION: ${{ steps.dependency.outputs.version }} - VERSION_PATTERN: 14\.[\d]+\.[\d]+ - - uses: peter-evans/create-pull-request@v3 - with: - body: Bumps `JRE 14` from `${{ steps.buildpack.outputs.old-version }}` to `${{ steps.buildpack.outputs.new-version }}`. - branch: update/buildpack/jre-14 - commit-message: |- - Bump JRE 14 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} - - Bumps JRE 14 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}. - delete-branch: true - labels: semver:minor, type:dependency-upgrade - signoff: true - title: Bump JRE 14 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/buildpack.toml b/buildpack.toml index 28a7d3b..5ab985e 100644 --- a/buildpack.toml +++ b/buildpack.toml @@ -103,30 +103,6 @@ stacks = [ "io.buildpacks.stacks.bionic", "org.cloudfoundry.stacks.cflinuxfs3" type = "GPL-2.0 WITH Classpath-exception-2.0" uri = "https://openjdk.java.net/legal/gplv2+ce.html" -[[metadata.dependencies]] -id = "jdk" -name = "Azul Zulu JDK" -version = "14.0.2" -uri = "https://repos.azul.com/azure-only/zulu/packages/zulu-14/14.0.2/zulu-14-azure-jdk_14.29.23-14.0.2-linux_x64.tar.gz" -sha256 = "d5aff1f668ebf60926d7f940c05184c4420081e31edf2ab76580702ea9c6cbb0" -stacks = [ "io.buildpacks.stacks.bionic", "org.cloudfoundry.stacks.cflinuxfs3" ] - - [[metadata.dependencies.licenses]] - type = "GPL-2.0 WITH Classpath-exception-2.0" - uri = "https://openjdk.java.net/legal/gplv2+ce.html" - -[[metadata.dependencies]] -id = "jre" -name = "Azul Zulu JRE" -version = "14.0.2" -uri = "https://repos.azul.com/azure-only/zulu/packages/zulu-14/14.0.2/zulu-14-azure-jre_14.29.23-14.0.2-linux_x64.tar.gz" -sha256 = "08567f5beafc86251795abbdbfc82c3ab7572873f593824937a85e3644cef07a" -stacks = [ "io.buildpacks.stacks.bionic", "org.cloudfoundry.stacks.cflinuxfs3" ] - - [[metadata.dependencies.licenses]] - type = "GPL-2.0 WITH Classpath-exception-2.0" - uri = "https://openjdk.java.net/legal/gplv2+ce.html" - [[metadata.dependencies]] id = "jdk" name = "Azul Zulu JDK"