Skip to content

Commit

Permalink
Merge pull request #292 from paketo-buildpacks/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 f8e469b + 4087a55 commit 1e57f0b
Show file tree
Hide file tree
Showing 21 changed files with 224 additions and 122 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 gcr.io
- name: Docker login gcr.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.JAVA_GCLOUD_SERVICE_ACCOUNT_KEY }}
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
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,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 @@ -58,8 +58,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 @@ -109,15 +109,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
18 changes: 12 additions & 6 deletions .github/workflows/update-apache-tomcat.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 gcr.io
- name: Docker login gcr.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.JAVA_GCLOUD_SERVICE_ACCOUNT_KEY }}
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
18 changes: 12 additions & 6 deletions .github/workflows/update-azure-application-insights.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 gcr.io
- name: Docker login gcr.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.JAVA_GCLOUD_SERVICE_ACCOUNT_KEY }}
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
18 changes: 12 additions & 6 deletions .github/workflows/update-ca-certificates.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 gcr.io
- name: Docker login gcr.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.JAVA_GCLOUD_SERVICE_ACCOUNT_KEY }}
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
18 changes: 12 additions & 6 deletions .github/workflows/update-clojure-tools.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 gcr.io
- name: Docker login gcr.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.JAVA_GCLOUD_SERVICE_ACCOUNT_KEY }}
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
18 changes: 12 additions & 6 deletions .github/workflows/update-dist-zip.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 gcr.io
- name: Docker login gcr.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.JAVA_GCLOUD_SERVICE_ACCOUNT_KEY }}
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
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.JAVA_GITHUB_TOKEN }}
- if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }}
name: Docker login gcr.io
- name: Docker login gcr.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.JAVA_GCLOUD_SERVICE_ACCOUNT_KEY }}
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/update-encrypt-at-rest.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 gcr.io
- name: Docker login gcr.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.JAVA_GCLOUD_SERVICE_ACCOUNT_KEY }}
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
Loading

0 comments on commit 1e57f0b

Please sign in to comment.