Draft: .oniro-ci,gitlab-ci.yml: add support for publishing bundles to hawkbit
- May 12, 2022
-
-
Zygmunt Krynicki authored
This speeds up testing and iteration during pipeline development. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
0bbc8a1c -
Zygmunt Krynicki authored
The HawkBit instance needs to be configured externally and reachable from the runner performing the publishing step. The location of the instance must be provided through environment variables compatible with hawkbitctl, namely HAWKBIT_{URL,USERNAME,PASSWORD}. HAWKBIT_TENANT is optional and untested. The bundle is added as an artifact to a new software module named after the bundle, using bundle timestamp as the version. The module is then placed in a distribution named after the image (not the bundle), with the exact same version. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
5c633754 -
Zygmunt Krynicki authored
This allows the bundle job to be started even if just one of the jobs in the previous stage, the one for pi4 image build, succeeds. This is better for testing and allows jobs to start and finish faster, reducing total build time. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
a51a204e -
Zygmunt Krynicki authored
The find call that was used to copy artifacts selected only files. In some cases, bitbake generates symbolic links that are worth copying as well. Extend the find expression to find both. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
e482657c -
Zygmunt Krynicki authored
The --archive flag should help us preserve symlinks. Add --verbose to make the process easier to debug. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
32b6c6e7 -
Zygmunt Krynicki authored
Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
e9984d15 -
Zygmunt Krynicki authored
Those timestamps are useful to create unique content in HawkBit later on. We can always strip them if we want to, but it is hard to re-create that information when it is not encoded in the file name. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
12c3946a -
Zygmunt Krynicki authored
This saves several gigabytes of traffic per build. Those artifacts are automatically pulled due to being present in the previous stage. Bundle is built from source, so no artifact is ever used. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
5639e343 -
Zygmunt Krynicki authored
The job extends the .build-image job so this part is automatic. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
bdbe65e7
-