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

Commit

Permalink
Update github-config to 3be7134
Browse files Browse the repository at this point in the history
  • Loading branch information
paketo-bot authored and ryanmoran committed Jul 30, 2020
1 parent 2a80fe7 commit a3c0ecd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
run: ./scripts/integration.sh
env:
GIT_TOKEN: ${{ github.token }}
CNB_BUILDER_IMAGE: ${{ secrets.CNB_BUILDER_IMAGE }}

release:
name: Release
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
run: ./scripts/integration.sh
env:
GIT_TOKEN: ${{ github.token }}
CNB_BUILDER_IMAGE: ${{ secrets.CNB_BUILDER_IMAGE }}

approve:
name: Auto Approve
Expand Down
18 changes: 14 additions & 4 deletions scripts/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,30 @@ function tools::install() {
}

function images::pull() {
local builder

if [[ -f "${BUILDPACKDIR}/integration.json" ]]; then
builder="$(jq -r .builder "${BUILDPACKDIR}/integration.json")"
fi

if [[ "${builder}" == "null" || -z "${builder}" ]]; then
builder="index.docker.io/paketobuildpacks/builder:base"
fi

util::print::title "Pulling builder image..."
docker pull "${CNB_BUILDER_IMAGE:=index.docker.io/paketobuildpacks/builder:base}"
docker pull "${builder}"

util::print::title "Setting default pack builder image..."
pack set-default-builder "${CNB_BUILDER_IMAGE}"
pack set-default-builder "${builder}"

local run_image lifecycle_image
run_image="$(
docker inspect "${CNB_BUILDER_IMAGE}" \
docker inspect "${builder}" \
| jq -r '.[0].Config.Labels."io.buildpacks.builder.metadata"' \
| jq -r '.stack.runImage.image'
)"
lifecycle_image="index.docker.io/buildpacksio/lifecycle:$(
docker inspect "${CNB_BUILDER_IMAGE}" \
docker inspect "${builder}" \
| jq -r '.[0].Config.Labels."io.buildpacks.builder.metadata"' \
| jq -r '.lifecycle.version'
)"
Expand Down

0 comments on commit a3c0ecd

Please sign in to comment.