5096 Commits

Author SHA1 Message Date
Kai Lueke
8600ddb540 ci-automation/release: Set up secret envs 2022-09-22 18:45:49 +02:00
Kai Lueke
b2f19b2d4c ci-automation/release: Run plume release only once
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.
2022-09-22 18:45:49 +02:00
Kai Lueke
760754e86f ci-automation/secret_to_file: Fix usage from subshell
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.
2022-09-22 18:45:49 +02:00
Kai Lueke
6b0db859ce ci-automation/release: Disable GCS auth for plume pre-release
When GCS auth is expected, plume would upload the AMI list to GCS.
2022-09-22 18:45:49 +02:00
Mathieu Tortuyaux
6f529aa0ac release: get product IDs from Jenkins
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>
2022-09-22 18:45:49 +02:00
Mathieu Tortuyaux
6df8555d1c sdk_container: publish the SDK on a Docker registry
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-09-22 18:45:49 +02:00
Kai Lueke
869b0302b8 ci-automation/release.sh: Run plume to release cloud images
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.
2022-09-22 18:45:49 +02:00
flatcar-ci
0fac9733a8 New version: beta-3277.1.2-nightly-20220921-2100 2022-09-21 21:00:31 +00:00
Krzesimir Nowak
66c6611e93
Merge pull request #494 from flatcar/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-09-21 17:20:06 +02:00
Flatcar Buildbot
8c0dd66737 Update mantle container image to latest HEAD 2022-09-21 15:12:16 +00:00
flatcar-ci
118fbb907c New version: beta-3277.1.2-nightly-20220920-2100 2022-09-20 21:00:32 +00:00
Mathieu Tortuyaux
54ecce042c
Merge pull request #487 from flatcar/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-09-20 15:41:09 +02:00
Flatcar Buildbot
745055d03b Update mantle container image to latest HEAD 2022-09-20 12:38:08 +00:00
flatcar-ci
9d5b866ab6 New version: beta-3277.1.2-nightly-20220919-2100 2022-09-19 21:00:26 +00:00
Kai Lüke
8451dac5d9
Merge pull request #485 from flatcar/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-09-19 15:57:42 +02:00
Flatcar Buildbot
d6caa884e9 Update mantle container image to latest HEAD 2022-09-19 13:56:28 +00:00
Krzesimir Nowak
c5e0ccb47f Merge pull request #481 from flatcar/scripts
ci-automation: Implement a stricter image version check
2022-09-19 15:04:22 +02:00
Krzesimir Nowak
54b7bbd671 ci-automation: Implement a stricter image version check
I made a mistake and wrote a version like main-3363-0.0-stuff (note a
dash instead of a dot after the first number). Surprisingly the build
chugged along just fine almost until the end of the image job - it
detected invalid version string when the job wanted to create a
version.txt file:

ERROR   build_image: script called: build_image '--board=amd64-usr' '--group=developer' '--output_root=/home/sdk/build/images' '--only_store_compressed' '--torcx_root=/home/sdk/build/torcx' 'prodtar' 'container'
ERROR   build_image: Backtrace:  (most recent call is last)
ERROR   build_image:   file build_image, line 196, called: split_ver '3363' 'SPLIT'
ERROR   build_image:   file common.sh, line 192, called: die 'Invalid version string '3363''
ERROR   build_image:
ERROR   build_image: Error was:
ERROR   build_image:   Invalid version string '3363'

Let's have a stricter version check in the beginning of the build
process, so the process fails sooner rather than later.
2022-09-19 15:04:22 +02:00
flatcar-ci
726f28bd32 New version: beta-3277.1.2-nightly-20220916-2100 2022-09-16 21:00:32 +00:00
Kai Lüke
cedcad5b78
Merge pull request #478 from flatcar/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-09-16 10:07:31 +02:00
Flatcar Buildbot
45439c76ef Update mantle container image to latest HEAD 2022-09-15 21:00:47 +00:00
flatcar-ci
e05912657b New version: beta-3277.1.2-nightly-20220915-2100 2022-09-15 21:00:27 +00:00
Kai Lüke
e57253f4de
Merge pull request #470 from flatcar/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-09-15 10:10:25 +02:00
Flatcar Buildbot
bc7f3c8567 Update mantle container image to latest HEAD 2022-09-14 21:00:49 +00:00
flatcar-ci
73bd1ed061 New version: beta-3277.1.2-nightly-20220914-2100 2022-09-14 21:00:33 +00:00
Kai Lueke
7d763ec81b Merge pull request #453 from flatcar/scripts
Prepare github org rename to flatcar
2022-09-14 14:52:47 +02:00
Kai Lüke
0ab7e1d354 Add correct repository link for coreos-overlay
Co-authored-by: Krzesimir Nowak <knowak@microsoft.com>
2022-09-14 14:52:47 +02:00
Kai Lueke
29e1e94522 Use new github org name "flatcar"
The "flatcar-linux" github org was renamed to "flatcar". There are no
github redirections in place and we have to update all links.
2022-09-14 14:52:47 +02:00
Kai Lueke
62be70b658 Use ghcr.io/flatcar, there are no redirects
The GitHub org rename also moved the ghcr.io container image repo but
in contrast to git repos, there are no redirects!
2022-09-14 14:52:47 +02:00
Kai Lueke
bd81b9d7a2 Use new website flatcar.org
The flatcar-linux.org domain has redirects but it's better to use the
current domain directly.
2022-09-14 14:52:47 +02:00
Kai Lueke
b30c21bce3 Fix broken docs link 2022-09-14 14:52:47 +02:00
flatcar-ci
8a20120e5b New version: beta-3277.1.2-nightly-20220913-2100 2022-09-13 21:00:38 +00:00
flatcar-ci
2890fdcbd0 New version: beta-3277.1.2-nightly-20220909-2100 2022-09-09 21:00:29 +00:00
Kai Lüke
367c52dd86
Merge pull request #468 from flatcar-linux/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-09-09 12:44:44 +02:00
Flatcar Buildbot
3d10f45868 Update mantle container image to latest HEAD 2022-09-08 21:00:41 +00:00
flatcar-ci
cafb0a523d New version: beta-3277.1.2-nightly-20220908-2100 2022-09-08 21:00:25 +00:00
Kai Lüke
d2bfd5d296
Merge pull request #462 from flatcar-linux/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-09-08 15:55:26 +02:00
Flatcar Buildbot
fe6cd85546 Update mantle container image to latest HEAD 2022-09-08 13:54:49 +00:00
Krzesimir Nowak
1bbfc9995c Merge pull request #464 from flatcar-linux/scripts
bootstrap_sdk_container: Fix a check for an official build
2022-09-08 15:09:20 +02:00
Krzesimir Nowak
b3b88f0160 bootstrap_sdk_container: Fix a check for an official build
It should happen after we had a chance of processing input parameters,
otherwise we were always operating on empty values which resulted in
always having an unofficial build.
2022-09-08 15:09:20 +02:00
Mathieu Tortuyaux
ca75c0266d
Merge pull request #458 from flatcar-linux/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-09-08 14:48:32 +02:00
Flatcar Buildbot
9ea9ddfcd4 Update mantle container image to latest HEAD 2022-09-07 21:00:50 +00:00
flatcar-ci
4e10dc4692 New version: beta-3277.1.2-nightly-20220907-2100 2022-09-07 21:00:30 +00:00
Krzesimir Nowak
4f1b03fc11 Merge pull request #452 from flatcar-linux/scripts
*: Allow specifying extra URLs for torcx packages
2022-09-07 15:14:07 +02:00
Krzesimir Nowak
957c82b142 ci-automation: Change the way we prepare torcx manifest for testing
Now URLs for torcx packages are always present in the torcx manifest,
but for releases they may be pointing to the origin server where the
packages will be eventually uploaded. At the time of running the
tests, those packages are still only in the build cache, so change the
URLs to point to the build cache, so the test can pass.
2022-09-07 15:14:06 +02:00
Krzesimir Nowak
0b774f3fa8 *: Allow specifying extra URLs for torcx packages
Torcx manifest may contain paths and URLs as locations of
packages. There are two kinds of packages - vendored and
extra. Vendored packages normally have two locations - path to the
directory inside the image where the package is (which is why it's
called vendored), and a URL to the package on some remote
server. Extra packages only have a URL. But the URLs are added only
when we tell the build_torcx_store script to upload the packages at
the same time, which is what the old build pipeline was doing. With
the new pipeline, the upload happens as a separate step, thus the
upload is disabled when invoking build_torcx_store, and so the
packages are not getting URLs set. This change went unnoticed, because
a kola test checking the generated torcx manifest was only checking if
there is at least one location, either path or URL, and all the new
releases have no extra packages, only vendored ones.

When backporting the new pipeline to old LTS, the kola tests started
to fail, because old LTS had one extra package, and this is how I
noticed the problem.
2022-09-07 15:14:06 +02:00
flatcar-ci
17cf942a35 New version: beta-3277.1.2-nightly-20220905-2100 2022-09-05 21:00:33 +00:00
Kai Lueke
2ff03c6dd2 Merge pull request #445 from flatcar-linux/scripts
ci-automation: Prepare new release job
2022-09-05 16:10:42 +02:00
Kai Lueke
45ec29a981 ci-automation: Prepare release job
The old pipeline had a release job where mantle's plume release tool
was invoked to publish the cloud images.
Implement a release job in the new pipeline with the same goals and
eventually even more automation.
2022-09-05 16:10:42 +02:00
Kai Lueke
4f3fd3889c ci-automation: Move image change report to own file
To review the image changes and the changelog more easily and in case
of fixes, iterate over it without rebuilding the image, move this logic
to its own file where a new job could call it.
2022-09-05 16:10:42 +02:00