-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1169 from flatcar/krnowak/image-changes
Generate reports for OEM and base sysext images, allow reports against last nightly
- Loading branch information
Showing
6 changed files
with
665 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -euo pipefail | ||
|
||
source ci-automation/image_changes.sh | ||
|
||
# Callback invoked by run_image_changes_job, read its docs to learn | ||
# about the details about the callback. | ||
function github_ricj_callback() { | ||
package_diff_env+=( | ||
"FROM_B=file://${PWD}/artifacts/images" | ||
# BOARD_B and CHANNEL_B are unused. | ||
) | ||
package_diff_params+=( | ||
# The package-diff script appends version to the file | ||
# URL, but the directory with the image has no version | ||
# component at its end, so we use . as a version. | ||
'.' | ||
) | ||
# Nothing to add to size changes env. | ||
size_changes_params+=( | ||
"local:${PWD}/artifacts/images" | ||
) | ||
show_changes_env+=( | ||
# Override the default locations of repositories. | ||
"SCRIPTS_REPO=." | ||
"COREOS_OVERLAY_REPO=../coreos-overlay" | ||
"PORTAGE_STABLE_REPO=../portage-stable" | ||
) | ||
show_changes_params+=( | ||
# We may not have a tag handy, so we tell show-changes | ||
# to use git HEAD as a reference to new changelog | ||
# entries. | ||
'NEW_VERSION=HEAD' | ||
) | ||
} | ||
|
||
arch=${1}; shift | ||
mode=${1}; shift | ||
report_file_name="image-changes-reports-${mode}.txt" | ||
|
||
run_image_changes_job "${arch}" "${mode}" "${report_file_name}" '../flatcar-build-scripts' github_ricj_callback |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Definitions of base sysexts to be built. Used by image.sh and | ||
# image_changes.sh. | ||
|
||
if [[ ${1:-} = 'local' ]]; then | ||
local ciabs_base_sysexts | ||
fi | ||
|
||
ciabs_base_sysexts=( | ||
'containerd-flatcar:app-containers/containerd' | ||
'docker-flatcar:app-containers/docker' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.