From f9c1600ee7625f8f166ca4450a9740ac1e9c8bc9 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Wed, 30 Aug 2023 01:59:26 +0000 Subject: [PATCH 1/7] Updating github-config --- scripts/integration.sh | 52 +++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/scripts/integration.sh b/scripts/integration.sh index 1eb8d1c9..13a5635f 100755 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -61,17 +61,20 @@ function main() { local builders builders="$(util::builders::list "${BUILDPACKDIR}/integration.json" | jq -r '.[]' )" + util::print::info "Found the following builders:" + util::print::info "${builders}" + # shellcheck disable=SC2206 IFS=$'\n' builderArray=(${builders}) unset IFS fi - # shellcheck disable=SC2068 - images::pull ${builderArray[@]} - local testout testout=$(mktemp) for builder in "${builderArray[@]}"; do + util::print::title "Getting images for builder: '${builder}'" + builder_images::pull "${builder}" + util::print::title "Setting default pack builder image..." pack config default-builder "${builder}" @@ -117,27 +120,28 @@ function tools::install() { fi } -function images::pull() { - for builder in "${@}"; do - util::print::title "Pulling builder image ${builder}..." - docker pull "${builder}" - - local run_image lifecycle_image - run_image="$( - pack inspect-builder "${builder}" --output json \ - | jq -r '.remote_info.run_images[0].name' - )" - lifecycle_image="index.docker.io/buildpacksio/lifecycle:$( - pack inspect-builder "${builder}" --output json \ - | jq -r '.remote_info.lifecycle.version' - )" - - util::print::title "Pulling run image..." - docker pull "${run_image}" - - util::print::title "Pulling lifecycle image..." - docker pull "${lifecycle_image}" - done +function builder_images::pull() { + local builder + builder="${1}" + + util::print::title "Pulling builder image ${builder}..." + docker pull "${builder}" + + local run_image lifecycle_image + run_image="$( + pack inspect-builder "${builder}" --output json \ + | jq -r '.remote_info.run_images[0].name' + )" + lifecycle_image="index.docker.io/buildpacksio/lifecycle:$( + pack inspect-builder "${builder}" --output json \ + | jq -r '.remote_info.lifecycle.version' + )" + + util::print::title "Pulling run image..." + docker pull "${run_image}" + + util::print::title "Pulling lifecycle image..." + docker pull "${lifecycle_image}" } function token::fetch() { From a215eeaa9e8567fac31db6f79e97ad4343a3bcb2 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Sat, 23 Sep 2023 01:58:21 +0000 Subject: [PATCH 2/7] Updating github-config --- .github/workflows/go-get-update.yml | 71 ----------------------------- 1 file changed, 71 deletions(-) delete mode 100644 .github/workflows/go-get-update.yml diff --git a/.github/workflows/go-get-update.yml b/.github/workflows/go-get-update.yml deleted file mode 100644 index cbf8bc09..00000000 --- a/.github/workflows/go-get-update.yml +++ /dev/null @@ -1,71 +0,0 @@ -name: Go Get Update - -on: - schedule: - - cron: '0 0 * * 1' # Once per week, Mondays at midnight - workflow_dispatch: {} - -jobs: - update: - name: Go Get Update - runs-on: ubuntu-22.04 - steps: - - name: Setup Go - uses: actions/setup-go@v3 - with: - go-version: 1.20.x - - - name: Checkout - uses: actions/checkout@v3 - - - name: Checkout Branch - uses: paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main - with: - branch: automation/tools/go-get-update - - - shell: bash - run: | - go get -u ./... - go mod tidy - - - name: Commit - id: commit - uses: paketo-buildpacks/github-config/actions/pull-request/create-commit@main - with: - message: "Running 'go get -u ./...'" - pathspec: "." - keyid: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY_ID }} - key: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY }} - - - name: Push Branch - if: ${{ steps.commit.outputs.commit_sha != '' }} - uses: paketo-buildpacks/github-config/actions/pull-request/push-branch@main - with: - branch: automation/tools/go-get-update - - - name: Open Pull Request - if: ${{ steps.commit.outputs.commit_sha != '' }} - uses: paketo-buildpacks/github-config/actions/pull-request/open@main - with: - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} - title: "Running 'go get -u ./...'" - branch: automation/tools/go-get-update - - failure: - name: Alert on Failure - runs-on: ubuntu-22.04 - needs: [update] - if: ${{ always() && needs.update.result == 'failure' }} - steps: - - name: File Failure Alert Issue - uses: paketo-buildpacks/github-config/actions/issue/file@main - with: - token: ${{ secrets.GITHUB_TOKEN }} - repo: ${{ github.repository }} - label: "failure:go-get-update" - comment_if_exists: true - issue_title: "Failure: Go get update workflow" - issue_body: | - Go get update workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). - comment_body: | - Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} From d7aa6a19189656069a6ab2e381ad0323cebdedc4 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Tue, 26 Sep 2023 02:02:00 +0000 Subject: [PATCH 3/7] Updating github-config --- .github/dependabot.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bf49a9d9..0c28ff72 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,6 @@ updates: directory: "/" schedule: interval: daily + allow: + # Allow both direct and indirect updates for all packages + - dependency-type: "all" From 5f4bb28a490651959617f685cb61e2f958df45dc Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Wed, 27 Sep 2023 02:02:19 +0000 Subject: [PATCH 4/7] Updating github-config --- .github/dependabot.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0c28ff72..1f5b2152 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,3 +8,11 @@ updates: allow: # Allow both direct and indirect updates for all packages - dependency-type: "all" + # group all minor and patch dependency updates together + groups: + go-modules: + patterns: + - "*" + update-types: + - "minor" + - "patch" From b42c297023588c102ffc226ab2483e6df713033f Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Thu, 28 Sep 2023 02:01:23 +0000 Subject: [PATCH 5/7] Updating github-config --- scripts/.util/tools.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index a8834ad7..70e63a9a 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { - "createpackage": "v1.66.2", + "createpackage": "v1.67.0", "jam": "v2.5.0", - "pack": "v0.30.0" + "pack": "v0.31.0" } From 644b809bf89d9b876c20f29e23afc87a15a73be4 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Sat, 30 Sep 2023 01:58:50 +0000 Subject: [PATCH 6/7] Updating github-config --- scripts/.util/tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index 70e63a9a..9fc88b0b 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { "createpackage": "v1.67.0", - "jam": "v2.5.0", + "jam": "v2.6.0", "pack": "v0.31.0" } From da8482ea56df25802051501a1e954ed6a9e653cb Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Wed, 4 Oct 2023 02:03:18 +0000 Subject: [PATCH 7/7] Updating github-config --- .github/workflows/approve-bot-pr.yml | 19 ------------------- scripts/.util/tools.json | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/.github/workflows/approve-bot-pr.yml b/.github/workflows/approve-bot-pr.yml index 3f45a3d7..c798e647 100644 --- a/.github/workflows/approve-bot-pr.yml +++ b/.github/workflows/approve-bot-pr.yml @@ -67,22 +67,3 @@ jobs: gh pr merge ${{ needs.download.outputs.pr-number }} --auto --rebase env: GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} - - failure: - name: Alert on Failure - runs-on: ubuntu-22.04 - needs: [download, approve] - if: ${{ always() && needs.download.result == 'failure' || needs.approve.result == 'failure' }} - steps: - - name: File Failure Alert Issue - uses: paketo-buildpacks/github-config/actions/issue/file@main - with: - token: ${{ secrets.GITHUB_TOKEN }} - repo: ${{ github.repository }} - label: "failure:approve-bot-pr" - comment_if_exists: true - issue_title: "Failure: Approve bot PR workflow" - issue_body: | - Approve bot PR workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). - comment_body: | - Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index 9fc88b0b..47165dc4 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { - "createpackage": "v1.67.0", + "createpackage": "v1.67.1", "jam": "v2.6.0", "pack": "v0.31.0" }