Commit Graph

15 Commits (53846dccff7eb3fef993398b6d4523b2e953e58d)

Author SHA1 Message Date
Paul Spooren 53846dccff use `base` container for SDKs/IBs
This way not every SDK/IB build installs all dependencies via `apt` but
rather pulls in a container.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-03-18 09:54:04 -10:00
Paul Spooren 93cf40e2d1 use build job names again for TARGET/ARCH
GitLab CI seem to lose some variables when creating downstream jobs,
revert the changes back to use the job name for target/arch and apply
the rule to SDK testing.

Remove leading `deploy` from build jobs so they are better readable in
the GitLab UI. Use the leading build name as TYPE variable, so that SDKs
are not labeled on target base and imagebuilder/rootfs is not labeled
based on arch.

For `generate_targets.sh`, instead of exporting BRANCH as env variable,
use functions.sh to set it automatically. Export the `VERSION` one
globally instead of for each downstream job. This works after removing
the `gitlab-ci.yml` variable which would previously overwrite
(strangely) the downstream job settings.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-02-26 21:47:49 -10:00
Paul Spooren 962d0fb6c0 replace BRANCH with VERSION
The generate_targets.sh script requires to run on a specific branch to
only generate jobs for existing targets. The BRANCH variable was however
used for VERSION rather than the branch running on.

This changes the behaviour by automatically selecting the correct branch
and only taking the new VERSION env variable into account.

By doing so new Docker container tags include `snapshot` rather than
`master`, however for compatibility with existing setups the `master`
tag is still added.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-09-11 08:06:37 +02:00
Paul Spooren ab85512508 dynamic downstream job creation based on targets
Instead of having a hard coded list of available targets, this approach
makes use os the dumpinfo.pl script that automatically finds available
targets existing in the OpenWrt buildroot. The advantage is to
automatically adapt to available targets in different branches.

Additionally the tagging of SDK containers is improved. While it is
still possible to use SDK based on target tag, it is now also possible
to chose the target based on architecutre. This way less SDK container
are build as one architecutre covers multiple targets.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-08-03 09:10:16 +02:00
Paul Spooren 200f563a8a set pre-build as first stage again
This was changed without fully thinking on it and should obviously be
corrected.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-11-08 13:27:21 +01:00
Paul Spooren 475f2f1a97 fixup prebuild deploy container
define USIGNHOME and GNUPGHOME to store the keys

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-11-06 18:16:03 -10:00
Paul Spooren 54d80c0363 use deploy container
This sets up gpg/usign once and reuses it for the ~160 sdk/ib containes

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-11-06 12:29:29 -10:00
Petr Štetiar 34adbafaeb ci: refactor into separate YAML files under .gitlab/ci/ dir
It makes the YAML files more comprehensible.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-10-11 11:00:08 -10:00
Petr Štetiar 43c17ad72b ci: add shellcheck for shell script checking
In order to make the shell scripts more robust.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-10-11 11:00:08 -10:00
Paul Spooren 2db99b240b introduce gen-targets.sh script
This improves readability as it auto generates the target list.
2019-10-02 20:46:24 -10:00
Paul Spooren 133f2ad712 split TARGETS in stacks of 10
ImageBuilder/SDKs are build for each target + master & 19.07-snapshot
branch. This is to much for most CI runners, this separates the job and
also allows running it in parrallel if more workers are available.

Also add PGP key for 19.07 release builds.

Introduce $CI_COMMIT_REF_SLUG for testing.

Introduce $SKIP_ROOTFS for older builds not supporting docker images.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-09-19 11:11:36 -10:00
Paul Spooren 86a90d8755 fixup: remove further outdated targets
* gemini/raidsonic
* gemini/wiligear
* malta/be64
* malta/le
* malta/le64
* mediatek/32

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-08-07 18:42:29 -10:00
Paul Spooren 816805813f fixup: remove outdated targets
Some targets still exists online, but were lastly updated late may.

* adm5120
* adm8668
* au1000
* mcs814x
* xburst

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-08-08 03:00:28 +02:00
Paul Spooren ca0a3d6d23 fixup: remove target ppc44x/generic
This target doen't seem to be build anymore:

lede-imagebuilder-ppc44x.Linux-x86_64.tar.xz
lede-ppc44x-canyonlands-squashfs.img
lede-ppc44x-default.manifest
lede-ppc44x-taishan-squashfs.img
lede-ppc44x-uImage
lede-sdk-ppc44x_gcc-5.4.0_musl-1.1.15.Linux-x86_64.tar.xz

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-08-08 02:26:09 +02:00
Paul Spooren 3e6f6e89c9 CI: add gitlab-ci.yml config file
Eventually this CI could move to GitLab, so start with some testing.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-08-08 02:15:20 +02:00