From 9b17df80874ca07e9026c110992f771920af6183 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Sat, 29 Jul 2023 02:13:08 +0000 Subject: [PATCH 1/6] Updating github-config --- .github/workflows/create-draft-release.yml | 1 + .github/workflows/test-pull-request.yml | 1 + scripts/.util/tools.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-draft-release.yml b/.github/workflows/create-draft-release.yml index 8cbb347c..281809f6 100644 --- a/.github/workflows/create-draft-release.yml +++ b/.github/workflows/create-draft-release.yml @@ -57,6 +57,7 @@ jobs: run: ./scripts/integration.sh --use-token --builder ${{ matrix.builder }} env: GIT_TOKEN: ${{ github.token }} + TMPDIR: "${{ runner.temp }}" release: name: Release diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 1111617e..b41bd1ea 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -60,6 +60,7 @@ jobs: run: ./scripts/integration.sh --use-token --builder ${{ matrix.builder }} env: GIT_TOKEN: ${{ github.token }} + TMPDIR: "${{ runner.temp }}" roundup: name: Integration Tests diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index aedb54d7..39696d11 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { - "createpackage": "v1.66.1", + "createpackage": "v1.66.2", "jam": "v2.3.0", "pack": "v0.29.0" } From 6c0701dba164d207e40ff854443729b449d41564 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Thu, 3 Aug 2023 02:14:30 +0000 Subject: [PATCH 2/6] 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 39696d11..83ef7b22 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { "createpackage": "v1.66.2", - "jam": "v2.3.0", + "jam": "v2.4.0", "pack": "v0.29.0" } From bf1215c70ce09226fd0f0c5756af6c7402f28db7 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Fri, 18 Aug 2023 02:04:33 +0000 Subject: [PATCH 3/6] 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 83ef7b22..ff56c4d8 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { "createpackage": "v1.66.2", "jam": "v2.4.0", - "pack": "v0.29.0" + "pack": "v0.30.0" } From 5797ffd894f3ce4b58236c46dda17a8e997c03fe Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Sat, 19 Aug 2023 01:59:57 +0000 Subject: [PATCH 4/6] 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 ff56c4d8..a8834ad7 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { "createpackage": "v1.66.2", - "jam": "v2.4.0", + "jam": "v2.5.0", "pack": "v0.30.0" } From cb119df53bce27cfe9884c1b2edf180459b02c5b Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Wed, 30 Aug 2023 02:03:23 +0000 Subject: [PATCH 5/6] 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 7c04128dc8b39ab5d2e84aefbc9a4ad3e6f5d98f Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Sat, 23 Sep 2023 02:04:41 +0000 Subject: [PATCH 6/6] 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}}