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

Adding option for enabling experimental options in pack #887

Merged
Merged
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
6 changes: 6 additions & 0 deletions builder/.github/workflows/push-image.yml
Original file line number Diff line number Diff line change
@@ -30,6 +30,12 @@ jobs:
with:
pack-version: ${{ steps.pack-version.outputs.version }}

- name: Enable Experimental Pack Features
run: |
if [ -f "scripts/options.json" ] && jq -e -r .pack_config_enable_experimental "scripts/options.json" > /dev/null; then
pack config experimental true
fi

- name: Create Builder Image
run: |
pack builder create builder --config builder.toml
11 changes: 11 additions & 0 deletions builder/scripts/.util/tools.sh
Original file line number Diff line number Diff line change
@@ -135,6 +135,13 @@ function util::tools::pack::install() {

version="$(jq -r .pack "$(dirname "${BASH_SOURCE[0]}")/tools.json")"

local pack_config_enable_experimental
if [ -f "$(dirname "${BASH_SOURCE[0]}")/../options.json" ]; then
pack_config_enable_experimental="$(jq -r .pack_config_enable_experimental "$(dirname "${BASH_SOURCE[0]}")/../options.json")"
else
pack_config_enable_experimental="false"
fi

tmp_location="/tmp/pack.tgz"
curl_args=(
"--fail"
@@ -158,6 +165,10 @@ function util::tools::pack::install() {
tar xzf "${tmp_location}" -C "${dir}"
chmod +x "${dir}/pack"

if [[ "${pack_config_enable_experimental}" == "true" ]]; then
"${dir}"/pack config experimental true
fi

rm "${tmp_location}"
else
util::print::info "Using pack $("${dir}"/pack version)"
11 changes: 11 additions & 0 deletions implementation/scripts/.util/tools.sh
Original file line number Diff line number Diff line change
@@ -135,6 +135,13 @@ function util::tools::pack::install() {

version="$(jq -r .pack "$(dirname "${BASH_SOURCE[0]}")/tools.json")"

local pack_config_enable_experimental
if [ -f "$(dirname "${BASH_SOURCE[0]}")/../options.json" ]; then
pack_config_enable_experimental="$(jq -r .pack_config_enable_experimental "$(dirname "${BASH_SOURCE[0]}")/../options.json")"
else
pack_config_enable_experimental="false"
fi

tmp_location="/tmp/pack.tgz"
curl_args=(
"--fail"
@@ -158,6 +165,10 @@ function util::tools::pack::install() {
tar xzf "${tmp_location}" -C "${dir}"
chmod +x "${dir}/pack"

if [[ "${pack_config_enable_experimental}" == "true" ]]; then
"${dir}"/pack config experimental true
fi

rm "${tmp_location}"
else
util::print::info "Using pack $("${dir}"/pack version)"
11 changes: 11 additions & 0 deletions stack/scripts/.util/tools.sh
Original file line number Diff line number Diff line change
@@ -135,6 +135,13 @@ function util::tools::pack::install() {

version="$(jq -r .pack "$(dirname "${BASH_SOURCE[0]}")/tools.json")"

local pack_config_enable_experimental
if [ -f "$(dirname "${BASH_SOURCE[0]}")/../options.json" ]; then
pack_config_enable_experimental="$(jq -r .pack_config_enable_experimental "$(dirname "${BASH_SOURCE[0]}")/../options.json")"
else
pack_config_enable_experimental="false"
fi

tmp_location="/tmp/pack.tgz"
curl_args=(
"--fail"
@@ -158,6 +165,10 @@ function util::tools::pack::install() {
tar xzf "${tmp_location}" -C "${dir}"
chmod +x "${dir}/pack"

if [[ "${pack_config_enable_experimental}" == "true" ]]; then
"${dir}"/pack config experimental true
fi

rm "${tmp_location}"
else
util::print::info "Using pack $("${dir}"/pack version)"

Unchanged files with check annotations Beta

on:
schedule:
- cron: '44 3 * * *' # daily at 3:44 AM UTC

Check warning on line 5 in stack/.github/workflows/update-github-config.yml

GitHub Actions / lintYaml

5:24 [comments] too few spaces before comment
workflow_dispatch: {}
concurrency: github_config_update
on:
schedule:
- cron: '27 2,14 * * *' # daily at 02:27 and 14:27 UTC

Check warning on line 5 in stack/.github/workflows/create-release.yml

GitHub Actions / lintYaml

5:27 [comments] too few spaces before comment
push:
branches:
- main
on:
schedule:
- cron: '36 0,12 * * *' # daily at 00:36 and 12:36 UTC

Check warning on line 5 in builder/.github/workflows/update-builder-toml.yml

GitHub Actions / lintYaml

5:27 [comments] too few spaces before comment
workflow_dispatch: {}
concurrency: builder_update
on:
schedule:
- cron: '47 8 * * *' # daily at 08:46 UTC

Check warning on line 5 in builder/.github/workflows/update-github-config.yml

GitHub Actions / lintYaml

5:24 [comments] too few spaces before comment
workflow_dispatch: {}
concurrency: github_config_update
on:
schedule:
- cron: '16 19 * * *' # daily at 19:16 UTC

Check warning on line 5 in library/.github/workflows/update-github-config.yml

GitHub Actions / lintYaml

5:25 [comments] too few spaces before comment
workflow_dispatch: {}
concurrency: github_config_update