Skip to content

Conversation

pothos
Copy link
Member

@pothos pothos commented Sep 15, 2022

The mantle plume tool has two steps, pre-release is the mere upload and release is the publication. In the past this was used to run the tests inbetween but we don't do this anymore.
Run plume pre-release and release in a single job. Since plume can't push to GCS in our case, we upload the files to bincache. Also do the cloudformation update which was previously done in flatcar-build-scripts but could only be run after the sync to Origin. It requires the "aws" tool in the mantle container until we implement this in plume directly.

Fixes flatcar/Flatcar#838

How to use

Add the aws tool to the mantle container. Add the new credentials to jenkins.

Maybe we can cut a dummy Alpha release and test the pipeline with it? The git tag for the Alpha would have to use this branch.
→ Doing it for a trial alpha-3367.0.0

Testing done

In http://jenkins.infra.kinvolk.io:8080/job/container/job/release/37/console

Closes: flatcar/Flatcar#739

pothos added a commit to flatcar/mantle that referenced this pull request Sep 15, 2022
The cloudformation update is done with the aws tool as of now, and we
need it in the build pipeline flatcar/scripts#475
until we move this logic into plume.
@pothos pothos force-pushed the kai/plume-release branch 4 times, most recently from 3cd2063 to d808276 Compare September 19, 2022 08:12
@pothos
Copy link
Member Author

pothos commented Sep 19, 2022

Tempted to also add the Azure community gallery upload but maybe let's keep that for later.

@pothos pothos self-assigned this Sep 19, 2022
@pothos pothos force-pushed the kai/plume-release branch 6 times, most recently from 1e5e199 to f4d3eb6 Compare September 21, 2022 16:12
@pothos pothos force-pushed the kai/plume-release branch 5 times, most recently from 751e553 to d007356 Compare September 22, 2022 15:35
pothos and others added 7 commits September 22, 2022 18:31
The mantle plume tool has two steps, pre-release is the mere upload and
release is the publication. In the past this was used to run the tests
inbetween but we don't do this anymore.
Run plume pre-release and release in a single job. Since plume can't
push to GCS in our case, we upload the files to bincache. Also do the
cloudformation update which was previously done in
flatcar-build-scripts but could only be run after the sync to Origin.
It requires the "aws" tool in the mantle container until we implement
this in plume directly.
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
the JSON object is passed from the Groovy script to the release script,
we just need to extract the correct AWS Marketplace product ID based on
the "<channel>-<arch>".

Exception for the stable-amd64 where we also need to get the stable-pro
product ID.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
When GCS auth is expected, plume would upload the AMI list to GCS.
This failed when used from ( secret_to_file ... VAR ; cat $VAR )
because ( ) starts a new subshell PID and secret_to_file's returned
/proc/PID/fd/X path was then using the wrong PID.
We need to run plume only once for each arch, move it out of the loop.
Also, address some smaller things that shellcheck complains about.
@pothos pothos marked this pull request as ready for review September 22, 2022 16:33
@pothos pothos requested a review from tormath1 September 22, 2022 16:33
@pothos pothos merged commit d6cb100 into main Sep 22, 2022
@pothos pothos deleted the kai/plume-release branch September 22, 2022 16:44
pothos added a commit that referenced this pull request Sep 22, 2022
ci-automation/release.sh: Run plume to release cloud images
pothos added a commit that referenced this pull request Sep 22, 2022
ci-automation/release.sh: Run plume to release cloud images
pothos added a commit that referenced this pull request Sep 22, 2022
ci-automation/release.sh: Run plume to release cloud images
pothos added a commit that referenced this pull request Sep 22, 2022
ci-automation/release.sh: Run plume to release cloud images
t-lo added a commit that referenced this pull request Oct 30, 2023
Temporary commit to use flatcar/mantle#475 for
testing which ships the btrfs backwards compatibility test.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run plume in the new build pipeline [RFE] ci-automation: Publish SDK container to ghcr for releases
2 participants