From 069111eb2c5855fff6e608d88bb89981cfb28df2 Mon Sep 17 00:00:00 2001 From: nebhale Date: Fri, 18 Dec 2020 05:06:07 +0000 Subject: [PATCH] Bump pipeline from 1.8.1 to 1.9.0 Bumps pipeline from 1.8.1 to 1.9.0. Signed-off-by: GitHub --- .github/pipeline-version | 2 +- .github/workflows/create-package.yml | 20 +++++++++++++++++--- .github/workflows/tests.yml | 18 ++++++++++++++++-- .github/workflows/update-gradle.yml | 1 + .github/workflows/update-pipeline.yml | 1 + 5 files changed, 36 insertions(+), 6 deletions(-) diff --git a/.github/pipeline-version b/.github/pipeline-version index a8fdfda..f8e233b 100644 --- a/.github/pipeline-version +++ b/.github/pipeline-version @@ -1 +1 @@ -1.8.1 +1.9.0 diff --git a/.github/workflows/create-package.yml b/.github/workflows/create-package.yml index 1d72dc1..dc3992c 100644 --- a/.github/workflows/create-package.yml +++ b/.github/workflows/create-package.yml @@ -64,6 +64,17 @@ jobs: | tar -C "${HOME}"/bin -xz pack env: PACK_VERSION: 0.15.0 + - if: ${{ false }} + name: Enable pack Experimental + run: | + #!/usr/bin/env bash + + set -euo pipefail + + echo "Enabling pack experimental features" + + mkdir -p "${HOME}"/.pack + echo "experimental = true" >> "${HOME}"/.pack/config.toml - uses: actions/checkout@v2 - if: ${{ false }} uses: actions/cache@v2 @@ -112,9 +123,10 @@ jobs: fi [[ -e package.toml ]] && cp package.toml "${HOME}"/package.toml - printf '[buildpack]\nuri = "%s"' "${HOME}"/buildpack >> "${HOME}"/package.toml + printf '[buildpack]\nuri = "%s"\n\n[platform]\nos = "%s"\n' "${HOME}"/buildpack "${OS}" >> "${HOME}"/package.toml env: INCLUDE_DEPENDENCIES: "false" + OS: linux VERSION: ${{ steps.version.outputs.version }} - id: package name: Package Buildpack @@ -134,7 +146,8 @@ jobs: else pack package-buildpack \ "${PACKAGE}:${VERSION}" \ - --config "${HOME}"/package.toml + --config "${HOME}"/package.toml \ + --format "${FORMAT}" fi env: PACKAGE: gcr.io/paketo-buildpacks/gradle @@ -162,7 +175,8 @@ jobs: env: DIGEST: ${{ steps.package.outputs.digest }} GITHUB_TOKEN: ${{ secrets.JAVA_GITHUB_TOKEN }} - - uses: docker://ghcr.io/buildpacks/actions/registry:main + - if: ${{ true }} + uses: docker://ghcr.io/buildpacks/actions/registry:main with: address: gcr.io/paketo-buildpacks/gradle@${{ steps.package.outputs.digest }} id: paketo-buildpacks/gradle diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 916e7bb..5b59b97 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,6 +43,17 @@ jobs: | tar -C "${HOME}"/bin -xz pack env: PACK_VERSION: 0.15.0 + - if: ${{ false }} + name: Enable pack Experimental + run: | + #!/usr/bin/env bash + + set -euo pipefail + + echo "Enabling pack experimental features" + + mkdir -p "${HOME}"/.pack + echo "experimental = true" >> "${HOME}"/.pack/config.toml - uses: actions/setup-go@v2 with: go-version: "1.15" @@ -93,9 +104,10 @@ jobs: fi [[ -e package.toml ]] && cp package.toml "${HOME}"/package.toml - printf '[buildpack]\nuri = "%s"' "${HOME}"/buildpack >> "${HOME}"/package.toml + printf '[buildpack]\nuri = "%s"\n\n[platform]\nos = "%s"\n' "${HOME}"/buildpack "${OS}" >> "${HOME}"/package.toml env: INCLUDE_DEPENDENCIES: "true" + OS: linux VERSION: ${{ steps.version.outputs.version }} - name: Package Buildpack run: | @@ -114,9 +126,11 @@ jobs: else pack package-buildpack \ "${PACKAGE}:${VERSION}" \ - --config "${HOME}"/package.toml + --config "${HOME}"/package.toml \ + --format "${FORMAT}" fi env: + FORMAT: image PACKAGE: test VERSION: ${{ steps.version.outputs.version }} unit: diff --git a/.github/workflows/update-gradle.yml b/.github/workflows/update-gradle.yml index 571d19d..fe052e5 100644 --- a/.github/workflows/update-gradle.yml +++ b/.github/workflows/update-gradle.yml @@ -77,6 +77,7 @@ jobs: VERSION_PATTERN: '[\d]+\.[\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 `gradle` from `${{ steps.buildpack.outputs.old-version }}` to `${{ steps.buildpack.outputs.new-version }}`. branch: update/buildpack/gradle commit-message: |- diff --git a/.github/workflows/update-pipeline.yml b/.github/workflows/update-pipeline.yml index 9e758c8..0f70aa4 100644 --- a/.github/workflows/update-pipeline.yml +++ b/.github/workflows/update-pipeline.yml @@ -64,6 +64,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.JAVA_GITHUB_TOKEN }} - uses: peter-evans/create-pull-request@v3 with: + author: ${{ secrets.JAVA_GITHUB_USERNAME }} <${{ secrets.JAVA_GITHUB_USERNAME }}@users.noreply.github.com> body: |- Bumps pipeline from `${{ steps.pipeline.outputs.old-version }}` to `${{ steps.pipeline.outputs.new-version }}`.