Commit Graph

206 Commits (fb30fc3180cc2de33f99b33c18c96b179747c2bc)

Author SHA1 Message Date
Paul Spooren e46a6fb4cb fix TARGET_FILTER corner case for SDKs
If a TARGET_FILTER is set only imagebuilder/sdk/rootfs for that target
are created. In case of the SDK multiple valid targets are in the same
row printed via `dump-target-info.pl`. With the previous logic the
"first" target is used expecting all targets to be on the same commit.
However when using TARGET_FILTER the specific target should be used for
the SDK, not just one that supports the same architecture.

A logic is added that if TARGET_FILTER is set, it's used as the SDK
target.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-09-30 03:42:08 +02:00
Paul Spooren 9681edad58 use mirror-01 as filehost
Previously the container would use downloads.openwrt.org aka mirror-02
which has a short delay on images. This would break webhooks since they
fire one ready on mirror-01 while not yet fully transferred to mirror-02.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-09-30 03:09:08 +02:00
Paul Spooren 5464f28b6a don't fail on empty rootfs matrix
Some targets don't create a rootfs. Don't fail in those cases.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-09-29 23:23:30 +02:00
Jeffery To da8723d08f CI: Change 21.02 builds from weekly to monthly
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-29 20:37:33 +02:00
Jeffery To b0deb277e1 CI: Change 22.03 builds to Tuesdays
22.03 snapshots appear to be built on weekends, so shifting builds to
Tuesdays should allow the Docker images to package the newest snapshots
more consistently.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-29 20:37:33 +02:00
Jeffery To 03647585b6 CI: Add daily builds for 23.05
Fixes: https://github.com/openwrt/docker/issues/115
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-29 20:37:33 +02:00
Jeffery To 770d98ef91 CI: Fix typos
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-29 20:37:33 +02:00
Jeffery To ee6571892e CI: Skip GitHub registry login for imagebuilder/rootfs for pull requests
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-29 20:37:33 +02:00
Jeffery To bf3ae2c308 CI: Add "latest" tag for x86_64 snapshot sdk
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-29 20:37:33 +02:00
Jeffery To 01e5cfccd7 CI: Add target/arch tags (no suffix) for snapshot images
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-29 20:37:33 +02:00
Jeffery To ecd0a15ae0 Rename "master" to "main"
Continue to accept "master" for manual releases, and add "master"
suffixed tags for main branch images, for backwards compatibility.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-29 20:37:33 +02:00
Paul Spooren b3af84bc5e CI: skip push step on PRs
Add the condition on the step level and not the push action. This way
it's clear nothing got pushed from the CI overview.

Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-06-21 09:39:10 +02:00
Paul Spooren 0a2b84ab1e CI: format job matrix with jq
To increase readability during debugging.

Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-06-21 09:39:10 +02:00
Paul Spooren f7a587c98f CI: use case instead of if to support armsr
Instead of using a definied list with an if condition, use a case
statement with wildcards to match on either `armsr` or `armvirt`
(legacy). This should keep support for both 23.05.x and newer releases.

Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-06-21 09:39:10 +02:00
Brénainn Woodsend e61e5180a0 Fix multiarch rootfs containers being mislabelled as AMD64.
* Set the platforms argument to docker/build-push-action.

* Insert a minimal *is it runable* test in between building and pushing
  the rootfs images.

Fixes #112.
2023-05-25 13:38:08 +02:00
Paul Spooren 755ed45745 Base docker on ghcr.io containers
Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-05-16 08:51:53 +02:00
Paul Spooren 696b2a5d3d ci: add missing wildcard to case
This should fix manual branch building.

Note to myself, always add tests to CI.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-04-24 08:52:18 +02:00
Paul Spooren 3f8662f697 ci: fix copy paste typo
Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-04-23 14:13:20 +02:00
Paul Spooren 0fb5e4b22a ci: fix two typose resulting in snapshot fallback
VERSION_PATH would stay empty due to typo

Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-04-22 20:46:01 +02:00
Paul Spooren 3598be3ba0 README: update to GitHub
Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-04-21 00:15:52 +02:00
Paul Spooren 362524ca6d ci: move Dockerfile.unify to Dockerfile
Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-04-21 00:15:52 +02:00
Paul Spooren a633a801af ci: drop GitLab
Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-04-21 00:15:52 +02:00
Paul Spooren 12858b8ed1 ci: add more tags
Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-04-20 22:31:43 +02:00
Paul Spooren 0e9759bde7 ci: enable pull_request trigger for testing
Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-04-20 15:44:52 +02:00
Paul Spooren 6161674e1e ci: fix TARGET_FILTER quotes
Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-04-19 15:13:42 +02:00
Paul Spooren 5e4e954daa ci: s/enabled/enable/ typo
Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-04-19 12:02:13 +02:00
Paul Spooren 49665a0721 ci: s/QUAT/QUAY typo
Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-04-19 11:58:52 +02:00
Paul Spooren a0cc41e60a ci: use secret for usernames
Those usernames are not really secret but should be possible to set to
whatever value seems suited.

Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-04-18 16:15:26 +02:00
Paul Spooren f26e53195d ci: remove fetch-depth=0 to speed up builds
It's not actually needed since the ref is directly checked out.

Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-04-18 14:40:24 +02:00
Paul Spooren 492b909320 ci: add quay.io
Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-04-18 14:10:14 +02:00
Paul Spooren 34bb972caf ci: simplify TARGET_FILTER
Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-04-18 14:10:14 +02:00
Paul Spooren 654fddac49 ci: fix missing echo
Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-04-18 13:25:15 +02:00
Paul Spooren e85b6bb40b rootfs: create rootfs matrix based on script
This way the TARGET_FILTER is applied, too

Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-04-18 13:16:39 +02:00
Paul Spooren 679a70d332 ci: add target input to only run for single target
Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-04-17 16:46:32 +02:00
Paul Spooren 17f20a8b8e ci: don't cancel other running builds
Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-04-17 16:39:00 +02:00
Paul Spooren b581a14ed1 ci: fixup broken newline in SDK tags
Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-04-15 10:20:14 +02:00
Paul Spooren 859ccee593 uploader to docker.io
Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-04-15 01:50:14 +02:00
Paul Spooren 5605f7f2dd readme: s/openwrtorg/openwrt and mark rootfs experimental
Docker is sunsetting free stuff so we drop pushing to openwrtorg, use
openwrt instead. Also don't use the `rootfs` for anything real.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2023-03-20 18:45:23 +01:00
Andrey f462ab7c9c Update README.md with links
provide links for SDK and Image Builder
2023-03-20 18:37:17 +01:00
Paul Spooren fd9b8caa4d ci: switch to GitHub actions
simplify much, GitLab less

Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
2023-03-20 18:31:20 +01:00
Petr Štetiar 54561b55a4 generate-targets: explicitly set container image to Debian 11
Otherwise it would use runner default, which might be unpredictable, as
for example GitLab provided public runners are using `ruby:2.5` as
default container image, but true.cz runners are using `debian:10`. So
lets fix it by using Debian 11 image by default.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2023-01-02 11:52:28 +01:00
Petr Štetiar ea92c4c361 generate-targets: fix missing make in base Debian container
Fixes following issue:

 + perl ./scripts/dump-target-info.pl architectures
 + read -r LINE
 sh: 1: make: not found

As apparently `make` got removed from the upstream base Debian containers.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2023-01-02 11:45:14 +01:00
Petr Štetiar 5341336522 generate-targets: fix missing git in base Debian container
Fixes following issue:

 + git clone --depth 1 --branch master https://github.com/openwrt/openwrt.git
 ./generate_targets.sh: line 7: git: command not found

As apparently `git` got removed from the upstream base Debian containers.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2023-01-02 10:36:34 +01:00
Paul Spooren 2ace880015 Dockerfile.base: switch to Debian 11
Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-07-28 21:35:22 +02:00
Petr Štetiar 6d75cb142c docker-common: add 22.03 GnuPGP and usign keys
So we can somehow validate the source binaries.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-03-26 22:35:54 +01:00
Paul Spooren f4689b15d7 gitlab: attach $CI_PIPELINE_ID to created containers
GitLab schedules use `master` as CI_COMMIT_REF_SLUG which causes
unpredictable behaviour when scheduling multiple releases at the same
time. Recently the 19.07 schedule would use 21.02 images for testing,
which succeeded even though it would fail on actual 19.07 containers.

A simple workaround is to attach the $CI_PIPELINE_ID to the test
containers. This issue won't happen to PRs since the CI_COMMIT_REF_SLUG
would then be set to the PRs branch name.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-02-23 10:12:55 +00:00
Paul Spooren 4afdd248d6 rootfs: add mvebu/cortexa9/arm_cortex-a9_vfpv3-d16
Add another rootfs

Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-02-22 17:16:33 +01:00
Paul Spooren c5a9777c76 rootfs: add $ARCH-$BRANCH tag
The tag allows the CI to test runtime behaviour not only for snapshot
builds but also for branches like 21.02.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-01-14 11:48:33 +01:00
Nick Hainke 54849510d7 docker: install g++-multilib
Node fails to compile with:
  In file included from /usr/include/c++/8/memory:62,
  from ../deps/v8/src/libplatform/default-foreground-task-runner.h:8,
  from ../deps/v8/src/libplatform/default-foreground-task-runner.cc:5:
  /usr/include/c++/8/bits/stl_algobase.h:59:10: fatal error: bits/c++config.h:
    No such file or directory
  #include <bits/c++config.h>
          ^~~~~~~~~~~~~~~~~~
  compilation terminated.

Add g++-multilib to fix this.

Fixes: https://github.com/openwrt/packages/issues/17074

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-12-13 08:50:41 +01:00
Paul Spooren 11452bebf7 Dockerfile.base: add packages installed in buildbots
Packages like `python3-pip` are installed within the buildbot containers
but not inside this base container. Add them to allow the CI compilation
of more packages.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-08-22 22:17:12 -10:00