From 6c86693d2958e220751b06beec6c7b8d5e96c33b Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Fri, 27 Aug 2021 19:44:34 +0000 Subject: [PATCH] Bump pipeline from 1.10.3 to 1.10.4 Bumps pipeline from 1.10.3 to 1.10.4. Signed-off-by: GitHub --- .github/pipeline-version | 2 +- .github/workflows/tests.yml | 7 -- .github/workflows/update-jdk-11.yml | 1 + .github/workflows/update-jdk-16.yml | 1 + .github/workflows/update-jdk-8.yml | 1 + .github/workflows/update-jre-11.yml | 1 + .github/workflows/update-jre-16.yml | 1 + .github/workflows/update-jre-8.yml | 1 + .github/workflows/update-native-image-11.yml | 95 ++++++++++++++++++++ 9 files changed, 102 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/update-native-image-11.yml diff --git a/.github/pipeline-version b/.github/pipeline-version index 587c5f0c7..18b311420 100644 --- a/.github/pipeline-version +++ b/.github/pipeline-version @@ -1 +1 @@ -1.10.3 +1.10.4 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bf8667078..0ef32a7cf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,13 +10,6 @@ jobs: runs-on: - ubuntu-latest steps: - - if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} - name: Docker login gcr.io - uses: docker/login-action@v1 - with: - password: ${{ secrets.JAVA_GCLOUD_SERVICE_ACCOUNT_KEY }} - registry: gcr.io - username: _json_key - uses: actions/setup-go@v2 with: go-version: "1.16" diff --git a/.github/workflows/update-jdk-11.yml b/.github/workflows/update-jdk-11.yml index 3886bad1c..f51fcc209 100644 --- a/.github/workflows/update-jdk-11.yml +++ b/.github/workflows/update-jdk-11.yml @@ -44,6 +44,7 @@ jobs: - id: dependency uses: docker://ghcr.io/paketo-buildpacks/actions/bellsoft-liberica-dependency:main with: + product: liberica type: jdk version: "11" - id: buildpack diff --git a/.github/workflows/update-jdk-16.yml b/.github/workflows/update-jdk-16.yml index 99650bb44..5cc7bef05 100644 --- a/.github/workflows/update-jdk-16.yml +++ b/.github/workflows/update-jdk-16.yml @@ -44,6 +44,7 @@ jobs: - id: dependency uses: docker://ghcr.io/paketo-buildpacks/actions/bellsoft-liberica-dependency:main with: + product: liberica type: jdk version: "16" - id: buildpack diff --git a/.github/workflows/update-jdk-8.yml b/.github/workflows/update-jdk-8.yml index 64cdb0b93..10a116bed 100644 --- a/.github/workflows/update-jdk-8.yml +++ b/.github/workflows/update-jdk-8.yml @@ -44,6 +44,7 @@ jobs: - id: dependency uses: docker://ghcr.io/paketo-buildpacks/actions/bellsoft-liberica-dependency:main with: + product: liberica type: jdk version: "8" - id: buildpack diff --git a/.github/workflows/update-jre-11.yml b/.github/workflows/update-jre-11.yml index f762e845b..ed26bf41a 100644 --- a/.github/workflows/update-jre-11.yml +++ b/.github/workflows/update-jre-11.yml @@ -44,6 +44,7 @@ jobs: - id: dependency uses: docker://ghcr.io/paketo-buildpacks/actions/bellsoft-liberica-dependency:main with: + product: liberica type: jre version: "11" - id: buildpack diff --git a/.github/workflows/update-jre-16.yml b/.github/workflows/update-jre-16.yml index cc819320b..9a09fd7ad 100644 --- a/.github/workflows/update-jre-16.yml +++ b/.github/workflows/update-jre-16.yml @@ -44,6 +44,7 @@ jobs: - id: dependency uses: docker://ghcr.io/paketo-buildpacks/actions/bellsoft-liberica-dependency:main with: + product: liberica type: jre version: "16" - id: buildpack diff --git a/.github/workflows/update-jre-8.yml b/.github/workflows/update-jre-8.yml index 978ecc0e0..ee2b7fb9f 100644 --- a/.github/workflows/update-jre-8.yml +++ b/.github/workflows/update-jre-8.yml @@ -44,6 +44,7 @@ jobs: - id: dependency uses: docker://ghcr.io/paketo-buildpacks/actions/bellsoft-liberica-dependency:main with: + product: liberica type: jre version: "8" - id: buildpack diff --git a/.github/workflows/update-native-image-11.yml b/.github/workflows/update-native-image-11.yml new file mode 100644 index 000000000..e71595e2a --- /dev/null +++ b/.github/workflows/update-native-image-11.yml @@ -0,0 +1,95 @@ +name: Update Native Image 11 +"on": + schedule: + - cron: 0 5 * * 1-5 + workflow_dispatch: {} +jobs: + update: + name: Update Buildpack Dependency + runs-on: + - ubuntu-latest + steps: + - uses: actions/setup-go@v2 + with: + go-version: "1.16" + - 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 + + echo "Installing yj ${YJ_VERSION}" + + 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 + - uses: actions/checkout@v2 + - id: dependency + uses: docker://ghcr.io/paketo-buildpacks/actions/bellsoft-liberica-dependency:main + with: + product: nik + type: core + version: "11" + - 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: native-image-svm + SHA256: ${{ steps.dependency.outputs.sha256 }} + URI: ${{ steps.dependency.outputs.uri }} + VERSION: ${{ steps.dependency.outputs.version }} + VERSION_PATTERN: 11\.[\d]+\.[\d]+ + - uses: peter-evans/create-pull-request@v3 + with: + author: ${{ secrets.JAVA_GITHUB_USERNAME }} <${{ secrets.JAVA_GITHUB_USERNAME }}@users.noreply.github.com> + body: Bumps `Native Image 11` from `${{ steps.buildpack.outputs.old-version }}` to `${{ steps.buildpack.outputs.new-version }}`. + branch: update/buildpack/native-image-11 + commit-message: |- + Bump Native Image 11 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} + + Bumps Native Image 11 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 Native Image 11 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} + token: ${{ secrets.JAVA_GITHUB_TOKEN }}