Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from micahyoung/update/pipeline
Browse files Browse the repository at this point in the history
Bump pipeline from 1.8.1 to 1.9.0
  • Loading branch information
Micah Young authored Mar 5, 2021
2 parents f3cb670 + 865453c commit c205be0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/pipeline-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8.1
1.9.0
24 changes: 22 additions & 2 deletions .github/workflows/create-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ jobs:
| tar -C "${HOME}"/bin -xz pack
env:
PACK_VERSION: 0.15.0
- if: ${{ false }}
name: Enable pack Experimental
run: |
#!/usr/bin/env bash
set -euo pipefail
echo "Enabling pack experimental features"
mkdir -p "${HOME}"/.pack
echo "experimental = true" >> "${HOME}"/.pack/config.toml
- uses: actions/checkout@v2
- if: ${{ false }}
uses: actions/cache@v2
Expand Down Expand Up @@ -112,9 +123,10 @@ jobs:
fi
[[ -e package.toml ]] && cp package.toml "${HOME}"/package.toml
printf '[buildpack]\nuri = "%s"' "${HOME}"/buildpack >> "${HOME}"/package.toml
printf '[buildpack]\nuri = "%s"\n\n[platform]\nos = "%s"\n' "${HOME}"/buildpack "${OS}" >> "${HOME}"/package.toml
env:
INCLUDE_DEPENDENCIES: "false"
OS: linux
VERSION: ${{ steps.version.outputs.version }}
- id: package
name: Package Buildpack
Expand All @@ -134,7 +146,8 @@ jobs:
else
pack package-buildpack \
"${PACKAGE}:${VERSION}" \
--config "${HOME}"/package.toml
--config "${HOME}"/package.toml \
--format "${FORMAT}"
fi
env:
PACKAGE: ghcr.io/${{ github.actor }}/${{ github.repository }}
Expand Down Expand Up @@ -162,3 +175,10 @@ jobs:
env:
DIGEST: ${{ steps.package.outputs.digest }}
GITHUB_TOKEN: ${{ secrets.SSLCNB_GITHUB_TOKEN }}
- if: ${{ false }}
uses: docker://ghcr.io/buildpacks/actions/registry:main
with:
address: ghcr.io/${{ github.actor }}/${{ github.repository }}@${{ steps.package.outputs.digest }}
id: micahyoung/certgen-cnb
token: ""
version: ${{ steps.version.outputs.version }}
18 changes: 16 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ jobs:
| tar -C "${HOME}"/bin -xz pack
env:
PACK_VERSION: 0.15.0
- if: ${{ false }}
name: Enable pack Experimental
run: |
#!/usr/bin/env bash
set -euo pipefail
echo "Enabling pack experimental features"
mkdir -p "${HOME}"/.pack
echo "experimental = true" >> "${HOME}"/.pack/config.toml
- uses: actions/setup-go@v2
with:
go-version: "1.15"
Expand Down Expand Up @@ -93,9 +104,10 @@ jobs:
fi
[[ -e package.toml ]] && cp package.toml "${HOME}"/package.toml
printf '[buildpack]\nuri = "%s"' "${HOME}"/buildpack >> "${HOME}"/package.toml
printf '[buildpack]\nuri = "%s"\n\n[platform]\nos = "%s"\n' "${HOME}"/buildpack "${OS}" >> "${HOME}"/package.toml
env:
INCLUDE_DEPENDENCIES: "true"
OS: linux
VERSION: ${{ steps.version.outputs.version }}
- name: Package Buildpack
run: |
Expand All @@ -114,9 +126,11 @@ jobs:
else
pack package-buildpack \
"${PACKAGE}:${VERSION}" \
--config "${HOME}"/package.toml
--config "${HOME}"/package.toml \
--format "${FORMAT}"
fi
env:
FORMAT: image
PACKAGE: test
VERSION: ${{ steps.version.outputs.version }}
unit:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.SSLCNB_GITHUB_TOKEN }}
- uses: peter-evans/create-pull-request@v3
with:
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
body: |-
Bumps pipeline from `${{ steps.pipeline.outputs.old-version }}` to `${{ steps.pipeline.outputs.new-version }}`.
Expand Down

0 comments on commit c205be0

Please sign in to comment.