From 17a2f684316e41ec8661b7d52a959e8eeaba7ba7 Mon Sep 17 00:00:00 2001 From: paketocommunity Date: Wed, 10 Aug 2022 18:09:49 +0000 Subject: [PATCH] Bump pipeline from 1.22.0 to 1.23.0 Bumps pipeline from 1.22.0 to 1.23.0. Signed-off-by: GitHub --- .github/pipeline-version | 2 +- .github/workflows/create-package.yml | 4 +- .github/workflows/tests.yml | 4 +- .github/workflows/update-cargo.yml | 4 +- .github/workflows/update-go.yml | 61 ++++++++++++++++++++++++++ .github/workflows/update-pipeline.yml | 4 +- .github/workflows/update-procfile.yml | 4 +- .github/workflows/update-rust-dist.yml | 4 +- .github/workflows/update-rustup.yml | 4 +- .github/workflows/update-syft.yml | 4 +- 10 files changed, 78 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/update-go.yml diff --git a/.github/pipeline-version b/.github/pipeline-version index 57807d6..a6c2798 100644 --- a/.github/pipeline-version +++ b/.github/pipeline-version @@ -1 +1 @@ -1.22.0 +1.23.0 diff --git a/.github/workflows/create-package.yml b/.github/workflows/create-package.yml index e0b36a4..6f615ec 100644 --- a/.github/workflows/create-package.yml +++ b/.github/workflows/create-package.yml @@ -18,14 +18,14 @@ jobs: username: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }} - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install create-package run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest - name: Install crane run: | #!/usr/bin/env bash diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 45dd333..ca677ab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,14 +19,14 @@ jobs: username: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }} - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install create-package run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest - name: Install pack run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-cargo.yml b/.github/workflows/update-cargo.yml index 3f20f05..ea4c6dc 100644 --- a/.github/workflows/update-cargo.yml +++ b/.github/workflows/update-cargo.yml @@ -18,14 +18,14 @@ jobs: username: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }} - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-package-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-package-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-package-dependency@latest - name: Install crane run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-go.yml b/.github/workflows/update-go.yml new file mode 100644 index 0000000..3518b9b --- /dev/null +++ b/.github/workflows/update-go.yml @@ -0,0 +1,61 @@ +name: Update Go +"on": + schedule: + - cron: 0 2 * * 1 + workflow_dispatch: {} +jobs: + update: + name: Update Go + runs-on: + - ubuntu-latest + steps: + - uses: actions/setup-go@v3 + with: + go-version: "1.18" + - uses: actions/checkout@v3 + - name: Update Go Version + id: update-go + run: | + #!/usr/bin/env bash + + set -euo pipefail + + if [ -z "${GO_VERSION:-}" ]; then + echo "No go version set" + exit 1 + fi + + OLD_GO_VERSION=$(grep -P '^go \d\.\d+' go.mod | cut -d ' ' -f 2) + + go mod edit -go="$GO_VERSION" + go mod tidy + go get -u all + go mod tidy + + git add go.mod go.sum + git checkout -- . + + echo "::set-output name=old-go-version::${OLD_GO_VERSION}" + echo "::set-output name=go-version::${GO_VERSION}" + env: + GO_VERSION: "1.18" + - uses: peter-evans/create-pull-request@v4 + with: + author: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }} <${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }}@users.noreply.github.com> + body: |- + Bumps Go from `${{ steps.update-go.outputs.old-go-version }}` to `${{ steps.update-go.outputs.go-version }}`. + +
+ Release Notes + ${{ steps.pipeline.outputs.release-notes }} +
+ branch: update/go + commit-message: |- + Bump Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }} + + Bumps Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }}. + delete-branch: true + labels: semver:minor, type:task + signoff: true + title: Bump Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }} + token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/update-pipeline.yml b/.github/workflows/update-pipeline.yml index 37cc3dc..11fcc2a 100644 --- a/.github/workflows/update-pipeline.yml +++ b/.github/workflows/update-pipeline.yml @@ -16,14 +16,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install octo run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/pipeline-builder/cmd/octo + go install -ldflags="-s -w" github.com/paketo-buildpacks/pipeline-builder/cmd/octo@latest - uses: actions/checkout@v3 - name: Update Pipeline id: pipeline diff --git a/.github/workflows/update-procfile.yml b/.github/workflows/update-procfile.yml index 8738182..7b03cd5 100644 --- a/.github/workflows/update-procfile.yml +++ b/.github/workflows/update-procfile.yml @@ -18,14 +18,14 @@ jobs: username: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }} - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-package-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-package-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-package-dependency@latest - name: Install crane run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-rust-dist.yml b/.github/workflows/update-rust-dist.yml index 7124908..6fe41fb 100644 --- a/.github/workflows/update-rust-dist.yml +++ b/.github/workflows/update-rust-dist.yml @@ -18,14 +18,14 @@ jobs: username: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }} - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-package-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-package-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-package-dependency@latest - name: Install crane run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-rustup.yml b/.github/workflows/update-rustup.yml index a8b2642..c339a7e 100644 --- a/.github/workflows/update-rustup.yml +++ b/.github/workflows/update-rustup.yml @@ -18,14 +18,14 @@ jobs: username: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }} - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-package-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-package-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-package-dependency@latest - name: Install crane run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-syft.yml b/.github/workflows/update-syft.yml index 72d838c..edccce4 100644 --- a/.github/workflows/update-syft.yml +++ b/.github/workflows/update-syft.yml @@ -18,14 +18,14 @@ jobs: username: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }} - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-package-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-package-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-package-dependency@latest - name: Install crane run: | #!/usr/bin/env bash