From 040c63474109c21804ffb85f6cb825f4d9608f1e Mon Sep 17 00:00:00 2001 From: paketocommunity Date: Thu, 7 Oct 2021 23:20:53 +0000 Subject: [PATCH] Bump pipeline from 1.11.0 to 1.11.0 Bumps pipeline from 1.11.0 to 1.11.0. Signed-off-by: GitHub --- .github/workflows/create-package.yml | 20 ++++++++++---------- .github/workflows/tests.yml | 16 ++++++++-------- .github/workflows/update-cargo.yml | 19 +++++++++++++------ .github/workflows/update-draft-release.yml | 4 ++-- .github/workflows/update-pipeline.yml | 4 ++-- .github/workflows/update-procfile.yml | 18 ++++++++++++------ .github/workflows/update-rust-dist.yml | 19 +++++++++++++------ .github/workflows/update-rustup.yml | 19 +++++++++++++------ 8 files changed, 73 insertions(+), 46 deletions(-) diff --git a/.github/workflows/create-package.yml b/.github/workflows/create-package.yml index bca2abe..59a1826 100644 --- a/.github/workflows/create-package.yml +++ b/.github/workflows/create-package.yml @@ -9,8 +9,8 @@ jobs: runs-on: - ubuntu-latest steps: - - if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} - name: Docker login docker.io + - name: Docker login docker.io + if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} uses: docker/login-action@v1 with: password: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }} @@ -64,8 +64,8 @@ jobs: | tar -C "${HOME}"/bin -xz pack env: PACK_VERSION: 0.18.1 - - if: ${{ false }} - name: Enable pack Experimental + - name: Enable pack Experimental + if: ${{ false }} run: | #!/usr/bin/env bash @@ -84,8 +84,8 @@ jobs: ${{ env.HOME }}/.pack ${{ env.HOME }}/carton-cache restore-keys: ${{ runner.os }}-go- - - id: version - name: Compute Version + - name: Compute Version + id: version run: | #!/usr/bin/env bash @@ -128,15 +128,15 @@ jobs: INCLUDE_DEPENDENCIES: "false" OS: linux VERSION: ${{ steps.version.outputs.version }} - - id: package - name: Package Buildpack + - name: Package Buildpack + id: package run: | #!/usr/bin/env bash set -euo pipefail if [[ -n "${PUBLISH+x}" ]]; then - pack package-buildpack \ + pack buildpack package \ "${PACKAGE}:${VERSION}" \ --config "${HOME}"/package.toml \ --publish @@ -144,7 +144,7 @@ jobs: crane tag "${PACKAGE}:${VERSION}" latest echo "::set-output name=digest::$(crane digest "${PACKAGE}:${VERSION}")" else - pack package-buildpack \ + pack buildpack package \ "${PACKAGE}:${VERSION}" \ --config "${HOME}"/package.toml \ --format "${FORMAT}" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4f66ed7..654f2f7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,8 +10,8 @@ jobs: runs-on: - ubuntu-latest steps: - - if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} - name: Docker login docker.io + - name: Docker login docker.io + if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} uses: docker/login-action@v1 with: password: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }} @@ -46,8 +46,8 @@ jobs: | tar -C "${HOME}"/bin -xz pack env: PACK_VERSION: 0.18.1 - - if: ${{ false }} - name: Enable pack Experimental + - name: Enable pack Experimental + if: ${{ false }} run: | #!/usr/bin/env bash @@ -65,8 +65,8 @@ jobs: ${{ env.HOME }}/.pack ${{ env.HOME }}/carton-cache restore-keys: ${{ runner.os }}-go- - - id: version - name: Compute Version + - name: Compute Version + id: version run: | #!/usr/bin/env bash @@ -116,7 +116,7 @@ jobs: set -euo pipefail if [[ -n "${PUBLISH+x}" ]]; then - pack package-buildpack \ + pack buildpack package \ "${PACKAGE}:${VERSION}" \ --config "${HOME}"/package.toml \ --publish @@ -124,7 +124,7 @@ jobs: crane tag "${PACKAGE}:${VERSION}" latest echo "::set-output name=digest::$(crane digest "${PACKAGE}:${VERSION}")" else - pack package-buildpack \ + pack buildpack package \ "${PACKAGE}:${VERSION}" \ --config "${HOME}"/package.toml \ --format "${FORMAT}" diff --git a/.github/workflows/update-cargo.yml b/.github/workflows/update-cargo.yml index 7e2ae50..964ad56 100644 --- a/.github/workflows/update-cargo.yml +++ b/.github/workflows/update-cargo.yml @@ -9,8 +9,8 @@ jobs: runs-on: - ubuntu-latest steps: - - if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} - name: Docker login docker.io + - name: Docker login docker.io + if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} uses: docker/login-action@v1 with: password: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }} @@ -67,8 +67,8 @@ jobs: env: YJ_VERSION: 5.0.0 - uses: actions/checkout@v2 - - id: package - name: Update Package Dependency + - name: Update Package Dependency + id: package run: | #!/usr/bin/env bash @@ -85,13 +85,19 @@ jobs: --version "${NEW_VERSION}" git add builder.toml - elif [[ -e package.toml ]]; then + fi + + if [[ -e package.toml ]]; then OLD_VERSION=$(yj -tj < package.toml | jq -r ".dependencies[].uri | capture(\".*${DEPENDENCY}:(?.+)\") | .version") update-package-dependency \ --buildpack-toml buildpack.toml \ + --id "${BP_DEPENDENCY:-$DEPENDENCY}" \ + --version "${NEW_VERSION}" + + update-package-dependency \ --package-toml package.toml \ - --id "${DEPENDENCY}" \ + --id "${PKG_DEPENDENCY:-$DEPENDENCY}" \ --version "${NEW_VERSION}" git add buildpack.toml package.toml @@ -102,6 +108,7 @@ jobs: echo "::set-output name=old-version::${OLD_VERSION}" echo "::set-output name=new-version::${NEW_VERSION}" env: + BP_DEPENDENCY: docker.io/paketo-community/cargo DEPENDENCY: docker.io/paketocommunity/cargo - uses: peter-evans/create-pull-request@v3 with: diff --git a/.github/workflows/update-draft-release.yml b/.github/workflows/update-draft-release.yml index 60b43b2..8eb113e 100644 --- a/.github/workflows/update-draft-release.yml +++ b/.github/workflows/update-draft-release.yml @@ -13,8 +13,8 @@ jobs: uses: release-drafter/release-drafter@v5 env: GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} - - if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} - name: Docker login docker.io + - name: Docker login docker.io + if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} uses: docker/login-action@v1 with: password: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }} diff --git a/.github/workflows/update-pipeline.yml b/.github/workflows/update-pipeline.yml index 0e23abd..a94adbb 100644 --- a/.github/workflows/update-pipeline.yml +++ b/.github/workflows/update-pipeline.yml @@ -25,8 +25,8 @@ jobs: GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/pipeline-builder/cmd/octo - uses: actions/checkout@v2 - - id: pipeline - name: Update Pipeline + - name: Update Pipeline + id: pipeline run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-procfile.yml b/.github/workflows/update-procfile.yml index 6f42aca..83d41bc 100644 --- a/.github/workflows/update-procfile.yml +++ b/.github/workflows/update-procfile.yml @@ -9,8 +9,8 @@ jobs: runs-on: - ubuntu-latest steps: - - if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} - name: Docker login docker.io + - name: Docker login docker.io + if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} uses: docker/login-action@v1 with: password: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }} @@ -67,8 +67,8 @@ jobs: env: YJ_VERSION: 5.0.0 - uses: actions/checkout@v2 - - id: package - name: Update Package Dependency + - name: Update Package Dependency + id: package run: | #!/usr/bin/env bash @@ -85,13 +85,19 @@ jobs: --version "${NEW_VERSION}" git add builder.toml - elif [[ -e package.toml ]]; then + fi + + if [[ -e package.toml ]]; then OLD_VERSION=$(yj -tj < package.toml | jq -r ".dependencies[].uri | capture(\".*${DEPENDENCY}:(?.+)\") | .version") update-package-dependency \ --buildpack-toml buildpack.toml \ + --id "${BP_DEPENDENCY:-$DEPENDENCY}" \ + --version "${NEW_VERSION}" + + update-package-dependency \ --package-toml package.toml \ - --id "${DEPENDENCY}" \ + --id "${PKG_DEPENDENCY:-$DEPENDENCY}" \ --version "${NEW_VERSION}" git add buildpack.toml package.toml diff --git a/.github/workflows/update-rust-dist.yml b/.github/workflows/update-rust-dist.yml index c4c68b1..d71d7bb 100644 --- a/.github/workflows/update-rust-dist.yml +++ b/.github/workflows/update-rust-dist.yml @@ -9,8 +9,8 @@ jobs: runs-on: - ubuntu-latest steps: - - if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} - name: Docker login docker.io + - name: Docker login docker.io + if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} uses: docker/login-action@v1 with: password: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }} @@ -67,8 +67,8 @@ jobs: env: YJ_VERSION: 5.0.0 - uses: actions/checkout@v2 - - id: package - name: Update Package Dependency + - name: Update Package Dependency + id: package run: | #!/usr/bin/env bash @@ -85,13 +85,19 @@ jobs: --version "${NEW_VERSION}" git add builder.toml - elif [[ -e package.toml ]]; then + fi + + if [[ -e package.toml ]]; then OLD_VERSION=$(yj -tj < package.toml | jq -r ".dependencies[].uri | capture(\".*${DEPENDENCY}:(?.+)\") | .version") update-package-dependency \ --buildpack-toml buildpack.toml \ + --id "${BP_DEPENDENCY:-$DEPENDENCY}" \ + --version "${NEW_VERSION}" + + update-package-dependency \ --package-toml package.toml \ - --id "${DEPENDENCY}" \ + --id "${PKG_DEPENDENCY:-$DEPENDENCY}" \ --version "${NEW_VERSION}" git add buildpack.toml package.toml @@ -102,6 +108,7 @@ jobs: echo "::set-output name=old-version::${OLD_VERSION}" echo "::set-output name=new-version::${NEW_VERSION}" env: + BP_DEPENDENCY: docker.io/paketo-community/rust-dist DEPENDENCY: docker.io/paketocommunity/rust-dist - uses: peter-evans/create-pull-request@v3 with: diff --git a/.github/workflows/update-rustup.yml b/.github/workflows/update-rustup.yml index e60e49e..73ab47a 100644 --- a/.github/workflows/update-rustup.yml +++ b/.github/workflows/update-rustup.yml @@ -9,8 +9,8 @@ jobs: runs-on: - ubuntu-latest steps: - - if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} - name: Docker login docker.io + - name: Docker login docker.io + if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} uses: docker/login-action@v1 with: password: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }} @@ -67,8 +67,8 @@ jobs: env: YJ_VERSION: 5.0.0 - uses: actions/checkout@v2 - - id: package - name: Update Package Dependency + - name: Update Package Dependency + id: package run: | #!/usr/bin/env bash @@ -85,13 +85,19 @@ jobs: --version "${NEW_VERSION}" git add builder.toml - elif [[ -e package.toml ]]; then + fi + + if [[ -e package.toml ]]; then OLD_VERSION=$(yj -tj < package.toml | jq -r ".dependencies[].uri | capture(\".*${DEPENDENCY}:(?.+)\") | .version") update-package-dependency \ --buildpack-toml buildpack.toml \ + --id "${BP_DEPENDENCY:-$DEPENDENCY}" \ + --version "${NEW_VERSION}" + + update-package-dependency \ --package-toml package.toml \ - --id "${DEPENDENCY}" \ + --id "${PKG_DEPENDENCY:-$DEPENDENCY}" \ --version "${NEW_VERSION}" git add buildpack.toml package.toml @@ -102,6 +108,7 @@ jobs: echo "::set-output name=old-version::${OLD_VERSION}" echo "::set-output name=new-version::${NEW_VERSION}" env: + BP_DEPENDENCY: docker.io/paketo-community/rustup DEPENDENCY: docker.io/paketocommunity/rustup - uses: peter-evans/create-pull-request@v3 with: