Skip to content

Commit

Permalink
Merge pull request #112 from paketo-community/update/pipeline
Browse files Browse the repository at this point in the history
Bump pipeline from 1.11.0 to 1.11.0
  • Loading branch information
Daniel Mikusa authored Oct 8, 2021
2 parents d00cc66 + 040c634 commit 08aaf4b
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 46 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/create-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -128,23 +128,23 @@ 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
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}"
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -116,15 +116,15 @@ jobs:
set -euo pipefail
if [[ -n "${PUBLISH+x}" ]]; then
pack package-buildpack \
pack buildpack package \
"${PACKAGE}:${VERSION}" \
--config "${HOME}"/package.toml \
--publish
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}"
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/update-cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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>.+)\") | .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
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/update-procfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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>.+)\") | .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
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/update-rust-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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>.+)\") | .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
Expand All @@ -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:
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/update-rustup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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>.+)\") | .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
Expand All @@ -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:
Expand Down

0 comments on commit 08aaf4b

Please sign in to comment.