mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
Catalyst 4 has totally changed the way repositories are handled. It only works when the name of the directory containing the repository matches the configured name of that repository. We already renamed coreos to coreos-overlay accordingly, but we actually want entirely different names and more convenient locations too. The repositories are now known as gentoo-subset and flatcar-overlay, and they live under scripts/repos. Using the same name as upstream Gentoo would have been problematic, and just "flatcar" would have looked awkward in documentation. I have removed code referencing /mnt/host/source/config rather than fix it up, as this is no location is no longer used anywhere. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
44 lines
1.3 KiB
Bash
Executable File
44 lines
1.3 KiB
Bash
Executable File
#!/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=."
|
|
"FLATCAR_OVERLAY_REPO=../flatcar-overlay"
|
|
"GENTOO_SUBSET_REPO=../gentoo-subset"
|
|
)
|
|
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
|