Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates github-config #545

Merged
merged 6 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/create-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
run: ./scripts/integration.sh --use-token --builder ${{ matrix.builder }}
env:
GIT_TOKEN: ${{ github.token }}
TMPDIR: "${{ runner.temp }}"

release:
name: Release
Expand Down
71 changes: 0 additions & 71 deletions .github/workflows/go-get-update.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
run: ./scripts/integration.sh --use-token --builder ${{ matrix.builder }}
env:
GIT_TOKEN: ${{ github.token }}
TMPDIR: "${{ runner.temp }}"

roundup:
name: Integration Tests
Expand Down
6 changes: 3 additions & 3 deletions scripts/.util/tools.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"createpackage": "v1.66.1",
"jam": "v2.3.0",
"pack": "v0.29.0"
"createpackage": "v1.66.2",
"jam": "v2.5.0",
"pack": "v0.30.0"
}
52 changes: 28 additions & 24 deletions scripts/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,20 @@ function main() {
local builders
builders="$(util::builders::list "${BUILDPACKDIR}/integration.json" | jq -r '.[]' )"

util::print::info "Found the following builders:"
util::print::info "${builders}"

# shellcheck disable=SC2206
IFS=$'\n' builderArray=(${builders})
unset IFS
fi

# shellcheck disable=SC2068
images::pull ${builderArray[@]}

local testout
testout=$(mktemp)
for builder in "${builderArray[@]}"; do
util::print::title "Getting images for builder: '${builder}'"
builder_images::pull "${builder}"

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

Expand Down Expand Up @@ -117,27 +120,28 @@ function tools::install() {
fi
}

function images::pull() {
for builder in "${@}"; do
util::print::title "Pulling builder image ${builder}..."
docker pull "${builder}"

local run_image lifecycle_image
run_image="$(
pack inspect-builder "${builder}" --output json \
| jq -r '.remote_info.run_images[0].name'
)"
lifecycle_image="index.docker.io/buildpacksio/lifecycle:$(
pack inspect-builder "${builder}" --output json \
| jq -r '.remote_info.lifecycle.version'
)"

util::print::title "Pulling run image..."
docker pull "${run_image}"

util::print::title "Pulling lifecycle image..."
docker pull "${lifecycle_image}"
done
function builder_images::pull() {
local builder
builder="${1}"

util::print::title "Pulling builder image ${builder}..."
docker pull "${builder}"

local run_image lifecycle_image
run_image="$(
pack inspect-builder "${builder}" --output json \
| jq -r '.remote_info.run_images[0].name'
)"
lifecycle_image="index.docker.io/buildpacksio/lifecycle:$(
pack inspect-builder "${builder}" --output json \
| jq -r '.remote_info.lifecycle.version'
)"

util::print::title "Pulling run image..."
docker pull "${run_image}"

util::print::title "Pulling lifecycle image..."
docker pull "${lifecycle_image}"
}

function token::fetch() {
Expand Down
Loading