-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlay, ci-automation: Factor out OEMID info to a separate file
Image changes job needs a list of OEMIDs that are built for a specific architecture. Similar information already existed in the coreos-base/common-oem-files ebuild, so factor it out to a separate file, so the image changes job does not need to source the entire ebuild (or process it in other way), but rather source the smaller file.
- Loading branch information
Showing
3 changed files
with
44 additions
and
64 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
30 changes: 30 additions & 0 deletions
30
sdk_container/src/third_party/coreos-overlay/coreos-base/common-oem-files/files/oemids.sh
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,30 @@ | ||
if [[ ${1:-} = 'local' ]]; then | ||
local -a COMMON_OEMIDS ARM64_ONLY_OEMIDS AMD64_ONLY_OEMIDS OEMIDS | ||
shift | ||
fi | ||
|
||
COMMON_OEMIDS=( | ||
ami | ||
azure | ||
openstack | ||
packet | ||
qemu | ||
) | ||
|
||
ARM64_ONLY_OEMIDS=( | ||
) | ||
|
||
AMD64_ONLY_OEMIDS=( | ||
digitalocean | ||
vmware | ||
) | ||
|
||
OEMIDS=( | ||
"${COMMON_OEMIDS[@]}" | ||
"${ARM64_ONLY_OEMIDS[@]}" | ||
"${AMD64_ONLY_OEMIDS[@]}" | ||
) | ||
|
||
if [[ ${1:-} = 'only-oemids' ]]; then | ||
unset COMMON_OEMIDS ARM64_ONLY_OEMIDS AMD64_ONLY_OEMIDS | ||
fi |