-
Notifications
You must be signed in to change notification settings - Fork 47
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
[wip] automate the capi image building and publishing #959
base: main
Are you sure you want to change the base?
Conversation
ci-automation/azure-sig.sh
Outdated
_=" | ||
${AZURE_CLIENT_ID} | ||
${AZURE_CLIENT_SECRET} | ||
" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't require them as env vars, we can remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to also support usage through manual invocation, you can move this to the else
case of the block below.
ci-automation/capi_image.sh
Outdated
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
# >>> This file is supposed to be SOURCED from the repository ROOT. <<< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't really need sourcing, we can simplify this and expect the script to be invoked directly. Sourcing always modifies shared global state and is hard to reason about.
ci-automation/azure-sig.sh
Outdated
if sig-image-version-exists; then | ||
return | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the wanted behavior when we have to rerun the release step. It should replace/republish.
ci-automation/azure-sig.sh
Outdated
if sig-image-version-exists; then | ||
return | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the wanted behavior when we have to rerun the release step. It should replace/republish.
ci-automation/capi_image.sh
Outdated
} | ||
|
||
function _capi_image_build_impl() { | ||
local arch="$1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the high level entry point maybe let's not require the architecture to be passed from the jenkins job where it would have to have a for loop. Either this script here can build and publish arm64 or it can't because the feature is missing.
c55899b
to
5a4e4a4
Compare
68ff299
to
ceb90c9
Compare
ceb90c9
to
af602dc
Compare
af602dc
to
15f4a4c
Compare
15f4a4c
to
9b33762
Compare
|
||
|
||
for elem in parsed_data.get('schedules', []): | ||
print(elem.get('next').get('release')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should filter out releases with a target in the future. The yaml entry looks like that: targetDate: 2023-07-12
9b33762
to
86c1559
Compare
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
86c1559
to
19a5fb8
Compare
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
This is a WIP PR, not yet tested.
ref flatcar/Flatcar#1104