Skip to content

Commit

Permalink
enable hermetic
Browse files Browse the repository at this point in the history
  • Loading branch information
tisutisu committed Jun 10, 2024
1 parent 1103d32 commit c6fbd0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .tekton/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ spec:
SKIP_BUILD=1 \
INSTALL_BUNDLE_NS=$(params.e2e_test_namespace) \
ENABLE_SOURCE_BUILD=1 \
ENABLE_HERMETIC_BUILD=1 \
hack/build-and-push.sh
eval "source bundle_values.env"
echo -n $CUSTOM_DOCKER_BUILD_PIPELINE_BUNDLE | tee $(results.custom-docker-build-bundle.path)
Expand Down
7 changes: 7 additions & 0 deletions hack/build-and-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ if [ -n "$ENABLE_SOURCE_BUILD" ]; then
done
fi

# Enable hermetic in the pipelines, used in build-definitions pull request CI only
if [ -n "$ENABLE_HERMETIC_BUILD" ]; then
for pipeline_yaml in "$generated_pipelines_dir"/*.yaml; do
yq e '(.spec.params[] | select(.name == "hermetic") | .default) = "true"' -i "$pipeline_yaml"
done
fi

# Build Pipeline bundle with pipelines pointing to newly built task bundles
for pipeline_yaml in "$generated_pipelines_dir"/*.yaml "$core_services_pipelines_dir"/*.yaml
do
Expand Down

0 comments on commit c6fbd0c

Please sign in to comment.