Currently some deploy job fails because of hub.docker.com issues, just
retry the deploy job in such cases.
Signed-off-by: Paul Spooren <mail@aparcar.org>
The script tried to tag Docker images with targets like
`target/subtarget` while `/` can't be used in tag names.
Use `tr` to replace `/` with `-`.
Error message in CI:
```
Error parsing reference: "openwrtorg/sdk:cns3xxx/generic-master" is not
a valid repository/tag: invalid reference format
```
Signed-off-by: Paul Spooren <mail@aparcar.org>
The `dumpinfo.pl` script is now part of upstream openwrt.git but was
renamed to `dump-target-info.pl` to have a more verbose name.
Reflect that in the `gen_targets.sh` scripts.
Signed-off-by: Paul Spooren <mail@aparcar.org>
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>
The underscore is now used to determine the target, it was only updated
for the ImageBuilders but not SDKs. This commit fixed the deploy step
for SDKs.
Signed-off-by: Paul Spooren <mail@aparcar.org>
We've already target specified in the CI job name, so just use this
value for TARGET variable instead of duplicating the same value.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
That check is currently failing due to different x86 image generation
code refactoring which changed naming of resulting images so they're now
different in master squashfs-combined Vs combined-squashfs in 19.07.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
That check is currently failing due to x86 image generation code
refactoring which changed naming of resulting images.
ls: cannot access './bin/targets/x86/64/*combined-squashfs.img.gz': No such file or directory
Fixes#48
Signed-off-by: Petr Štetiar <ynezz@true.cz>
This was added to packages.git CI before[0].
Use -c instead of --check as alpine does not support to longer version.
[0]: eb5a9990ed
Signed-off-by: Paul Spooren <mail@aparcar.org>
This was removed during debugging and accidently forgotten to readd. It
fails to pass if no Docker credentials are given, which would be always
the case except on openwrtorg/master. In the future a test docker hub
account should be used instead of disabling it.
Fixes: 475f2f1a97
Signed-off-by: Paul Spooren <mail@aparcar.org>
to make shellcheck happy we can no longer use glob, so now the script
use find to get the actual filename.
Signed-off-by: Paul Spooren <mail@aparcar.org>
previously multiple targets were combined in a single job so failing
targets should not stop others from being deployed. However as there are
now single builds per target this is no longer required.
Signed-off-by: Paul Spooren <mail@aparcar.org>
In ./docker-download.sh:
SC2086: Double quote to prevent globbing and word splitting.
SC2086: Double quote to prevent globbing and word splitting.
SC2086: Double quote to prevent globbing and word splitting.
In ./gen-targets.sh:
SC2188: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
SC2027: The surrounding quotes actually unquote this. Remove or escape them.
SC2086: Double quote to prevent globbing and word splitting.
SC2188: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
SC2027: The surrounding quotes actually unquote this. Remove or escape them.
SC2086: Double quote to prevent globbing and word splitting.
SC2027: The surrounding quotes actually unquote this. Remove or escape them.
SC2086: Double quote to prevent globbing and word splitting.
In ./docker-imagebuilder.sh:
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2105: continue is only valid in loops.
In ./docker-rootfs.sh:
SC2039: In POSIX sh, == in place of = is undefined.
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2105: continue is only valid in loops.
In ./docker-sdk.sh line:
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2105: continue is only valid in loops.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
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>
This prevents mixing of keys when running the scripts locally for
testing, the same is done for the using keys.
Signed-off-by: Paul Spooren <mail@aparcar.org>
Initially the rootfs would only support snapshot builds as the stable
18.06.x wouldn't support Docker due to procd limitations. This was fixed
and therefore 19.07.x should also be supported.
Signed-off-by: Paul Spooren <mail@aparcar.org>
Some targets still exists online, but were lastly updated late may.
* adm5120
* adm8668
* au1000
* mcs814x
* xburst
Signed-off-by: Paul Spooren <mail@aparcar.org>
ImagBuilder and SDK use a different Dockerfile than the rootfs, this was
missed while refactoring for GitLab.
Signed-off-by: Paul Spooren <mail@aparcar.org>
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>