Commit Graph

140 Commits (696b2a5d3dc81fa034cad72fc76e2087d75fe929)

Author SHA1 Message Date
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
Paul Spooren 21a3b9284c build: tag missing imagebuilder branch
The $BRANCH is used in CIs, tag it or images are not updated.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-03-20 18:49:37 -10:00
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 ba196c53ad rootfs: tag via ARCH as well
This was missing and caused CI jobs in packages.git to run on an old
snapshot.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-03-17 20:31:05 -10:00
Paul Spooren 7b11b13eee fixup SDK/x86-64/snapshot
That special case tries to tag a sdk container with `x86/64` where th
`/` is not allowed in a name. Replace it via `tr`.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-03-11 19:23:35 -10:00
Paul Spooren f7a375b9dc switch $TYPE logic to work during tests
THe recent changes were a bit short-sighted, not putting into
consideration all labels and different behaviour during testing. This
final commit should fix building for all versions, be it snapshot, a
release snapshot or a regular point release.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-02-27 23:26:59 -10:00
Paul Spooren 9d87aec468 fixup non snapshot tests
The test should work for versions other than `snapshot`.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-02-27 18:45:18 -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 4549d070bc fixup tag logic
* SDKs get their target tags in a later step.
* If arch is x86_64 it becomes the branch default

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-02-24 19:16:24 -10:00
Paul Spooren d2efc132bf IB/rootfs fixup missing target variable
and reformat long lines

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-02-24 19:16:24 -10:00
Paul Spooren db58c36389 extend SDK testing
* Test x86/64 and ath79/generic compilation.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-02-24 19:16:24 -10:00
Paul Spooren ca13177b56 simplify ARCH/TARGET variables
Instead of extracting ARCH/TARGET from the build name explicitly export
the variables to simplify the code. If not, it requires extra handling
for tagging which nulls the "simplification".

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-02-24 11:56:25 -10:00
Paul Spooren 329e5ec69d fixup generate_targets.sh branch detections
Use the functions.sh branch detection which can handle `-SNAPSHOT`.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-02-23 20:52:20 -10:00
Paul Spooren fda9fd2cfd fixup push of multiple image names
it is not possible to define multiple images in a single `docker push`
command, therefore run a loop.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-02-23 20:10:50 -10:00
Paul Spooren baf01edb31 refactor build scripts
* add a functions.sh file containing functions used by all three
  container types, ImageBuilder, SDK and rootfs.
* allow SDK branch tags for other branches than `master`. This allows
  testing of release SDK versions
* Fix handling of special snapshot versions like `21.02-SNAPSHOT`

Future commits will move `docker-download.sh` and `docker-build.sh` do
`functions.sh`.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-02-23 19:53:22 -10:00
Paul Spooren 8fd1339b33 add 21.02 signing keys
Keys where added to the official keyring:
https://git.openwrt.org/?p=keyring.git;a=summary

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-02-21 10:26:54 -10:00
Paul Spooren 15ae22833e Merge branch 'openwrt' into 'master'
Add `openwrt` username in tags

See merge request openwrt/docker!39
2021-02-21 19:37:20 +00:00