Commit Graph

380 Commits

Author SHA1 Message Date
dependabot[bot]
1f0993b02c
Bump peter-evans/repository-dispatch from 1 to 2 (#3891)
Bumps [peter-evans/repository-dispatch](https://github.com/peter-evans/repository-dispatch) from 1 to 2.
- [Release notes](https://github.com/peter-evans/repository-dispatch/releases)
- [Commits](https://github.com/peter-evans/repository-dispatch/compare/v1...v2)

---
updated-dependencies:
- dependency-name: peter-evans/repository-dispatch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-11 18:16:04 +02:00
dependabot[bot]
10d5d69c7e
Bump actions/checkout from 2 to 3 (#3890)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-11 18:15:38 +02:00
dependabot[bot]
7a7e61e114
Bump actions/labeler from 3 to 4 (#3889)
Bumps [actions/labeler](https://github.com/actions/labeler) from 3 to 4.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](https://github.com/actions/labeler/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-11 18:15:18 +02:00
dependabot[bot]
f1cbe05499
Bump cirrus-actions/rebase from 1.4 to 1.7 (#3887)
Bumps [cirrus-actions/rebase](https://github.com/cirrus-actions/rebase) from 1.4 to 1.7.
- [Release notes](https://github.com/cirrus-actions/rebase/releases)
- [Commits](https://github.com/cirrus-actions/rebase/compare/1.4...1.7)

---
updated-dependencies:
- dependency-name: cirrus-actions/rebase
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-11 18:14:50 +02:00
dependabot[bot]
d7a43cab4e
Bump actions/upload-artifact from 2 to 3 (#3888)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-11 18:13:51 +02:00
Naveen
4577254e20
chore: Set permissions for GitHub actions (#3880)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-06-11 18:04:11 +02:00
Igor Pečovnik
9a661d7af9
Add support for build all images to build train (#3785)
* Extend build capacity

* Update build-train.yml

* Update build-train.yml

* Update build-train.yml

* Update build-images.yml

* Update build-images.yml

* Update build-images.yml

* Update build-images.yml
2022-06-01 17:12:11 +02:00
Igor Pečovnik
3dbba8e8ea
Github action for generating desktops does not start (#3745) 2022-05-03 08:01:43 +02:00
Igor Pečovnik
19ca6f1f4e
Run changes checking workflow with reference parameter (#3664) 2022-04-11 17:47:20 +02:00
Igor Pečovnik
708a4851fb
Add missing packages creation to build train (#3632)
* Add missing packages creation to build train

* Improved HASH calculation

Now it also checks series which were before invisible.

* Revert

* Bugfix

* Save git hash of patch files and kernel configuration file (#3636)

* Save git hash of patch files and kernel configuration file

* Storing values to the file. Now we have config hash separate.

todo: adjust on the checking side

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>

Co-authored-by: The-going <48602507+The-going@users.noreply.github.com>
2022-04-05 15:41:58 +02:00
Igor Pečovnik
af903b2ccd
Move Docker image to Ubuntu 22.04 LTS (#3481)
* Add tested Docker files for current Debian / Ubuntu, defaulting to Jammy

* Update update-docker.yml

* Update update-docker.yml

* Solving with Docker run parameters

* Just variable name change

* Update update-docker.yml

* Change to master

Also merge https://github.com/armbian/scripts/pull/6

* Set default values

* Add missing libssl1.1
2022-03-30 07:26:59 +02:00
Igor Pečovnik
47932ea511
Fixing pull request trigger (#3575) 2022-03-26 12:45:52 +01:00
Igor Pečovnik
81d58c64f1
Changing build runners on main build train (#3566)
* Changing build runners only

* Update build-train.yml
2022-03-25 19:18:17 +01:00
Igor Pečovnik
bcbe9479fa
Build images on PR if label is set to "Desktop" (#3567)
* Enable creating images on PR when label is set to "Desktop"
* Only approved can start this action
2022-03-25 09:49:04 -04:00
Igor Pečovnik
d81155f331
Sync beta repository in the CI process (#3548)
* Sync servers after repository is updated

* Update build-train.yml

* Sync servers before building images
2022-03-22 01:12:09 +01:00
Igor Pečovnik
387df71566
Actions: run build train from any branch (#3465) 2022-02-07 12:58:58 +01:00
Igor Pečovnik
249c20c7e2
Fixes to build train and small changes to README (#3433)
- set proper badge for building
- adjust title: build tools -> build framework
- keeping text relevance
- add / remove partner logos
2022-01-24 17:11:38 +01:00
Igor Pečovnik
459ebf8d15
Enable x86 desktop build targets (#3431)
* Enable x86 desktop build targets
* Also fix build train
2022-01-24 16:32:23 +01:00
Igor Pečovnik
821a2e557d
Cancels previous runs associated with a workflow (#3426) 2022-01-22 19:44:43 +01:00
Igor Pečovnik
d501e387cf
Update build-kernel-on-merge-request.yml (#3425) 2022-01-22 19:29:16 +01:00
Igor Pečovnik
fbda1e82c6
Add DUT smoke tests script (#3402) 2022-01-20 14:45:48 +01:00
Igor Pečovnik
4f942e3e50
Manual bump (#3398) 2022-01-12 11:54:43 +01:00
Igor Pečovnik
b5de98aa9b
Actions bugfix (#3397) 2022-01-12 09:33:35 +01:00
Igor Pečovnik
110235ad05
Github actions tweaks (#3383) 2022-01-11 15:26:28 +01:00
Igor Pečovnik
6bfc83b7ab
Fixes for Github Actions (#3379)
* Update build-beta-images.yml

* Update build-kernel-on-merge-request.yml

* Update build-train.yml
2022-01-06 11:50:43 +01:00
Igor Pečovnik
7f556dc1b9
Assemble needed runs into a GH Actions build train (#3366) 2021-12-25 23:05:04 +01:00
Igor Pečovnik
c2ca3e3ebd
Github Actions update (#3361) 2021-12-20 00:41:50 +01:00
Igor Pečovnik
36d0bdcaff
Varius updates to CI scripts (#3359)
* RFC u-boot CI to more modern way
2021-12-19 01:02:16 +01:00
Igor Pečovnik
2b643991c8
Github Actions - improve beta build process (#3353) 2021-12-16 16:10:33 +01:00
Igor Pečovnik
7024f2fb60
Cosmetic - fix kernel CI artefact package naming (#3345) 2021-12-14 08:14:22 +01:00
Igor Pečovnik
6b8ca7f6b2
Backend - enable bind mount with Github actions (#3343) 2021-12-13 00:25:20 +01:00
Igor Pečovnik
ae5afb0bd0
Skip workflow if previous step failed, fix runner arch dependency (#3331) 2021-12-09 11:15:06 +01:00
Igor Pečovnik
c0ef5f0666
Improve CI test builds (#3327) 2021-12-07 20:13:15 +01:00
Igor Pečovnik
b054239120
Enable desktop packages creation after kernel is built (#3324) 2021-12-06 23:53:39 +01:00
Igor Pečovnik
9c730fb27b
Github actions - adding desktop package builder (#3323)
* Cleanup
* Adding desktop package builder
2021-12-06 21:03:48 +01:00
Igor Pečovnik
2ab8795ae9
Github actions fixes (#3319) 2021-12-05 17:39:26 +01:00
Igor Pečovnik
2aa23f485e
A pack of CI fixes (#3315) 2021-12-04 23:42:10 +01:00
Igor Pečovnik
43b4d75fb2
Several tiny improvements of GH actions (#3304) 2021-12-02 00:34:15 +01:00
Igor Pečovnik
42588b585a
Add composite actions to support cache build process (#3302) 2021-11-30 21:51:32 +01:00
Igor Pečovnik
a55122a1d2
Another pack of updates for Github actions (#3288) 2021-11-23 22:37:06 +01:00
Igor Pečovnik
9b36028128
Add action to build qemu image inside CI created Docker image (#3285)
* Add action to build qemu image inside CI created Docker image
* Disable automatic executing until its not tested
2021-11-22 14:26:32 +01:00
Igor Pečovnik
c1b8ab8755
Recreate Docker image on every code change (#3276)
* Add switch for clean Docker image preparation
* Link image to our GitHub repository
* Switch to Github repo
* Minimal variant
* Rename
2021-11-21 09:41:31 +01:00
Igor Pečovnik
d924b214c9
Batch of CI improvements (#3273) 2021-11-20 19:47:52 +01:00
Igor Pečovnik
eb60188ad1
Update Github actions scripts (#3209) 2021-11-09 18:31:48 +01:00
Igor Pečovnik
e8d27e4ae5
Update build-beta-kernel.yml 2021-10-31 15:25:44 +01:00
Pavel Sokolov
de548b01e6
Added helper to run workflows on forks (#3197)
* Added workflow helper for the forked repositories.

* Use secret.ARMBIAN_SELF_DISPATCH_TOKEN, Added `event_details`

* Use secret.ARMBIAN_SELF_DISPATCH_TOKEN, Added `event_details`

* Updated .github/workflows/README.md with `armbian` event

* Fix newline in the end of yaml.

* Remove `Debug details` step

* Added comment for JSON processing
2021-10-15 07:59:43 +02:00
Igor Pečovnik
d5662a50a2
Github actions update (#3196) 2021-10-14 00:01:03 +02:00
Igor Pečovnik
095be1ba57
Github actions update (#3193) 2021-10-13 17:36:18 +02:00
Igor Pečovnik
0fe69c2fe6
Github actions update (#3191) 2021-10-13 12:50:18 +02:00
Igor Pečovnik
4d19f3d4aa
Github actions update (#3187) 2021-10-12 22:57:26 +02:00
Igor Pečovnik
484ee3f305
CI pipeline bugfix - removing pointer from temporally repository (#3181) 2021-10-07 20:54:04 +02:00
Igor Pečovnik
8d0bb0ac0b
Maintain runner script needs few adjustements (#3179)
We need to have different tag organisation to have a better control via tagging
2021-10-07 20:30:12 +02:00
Igor Pečovnik
32853a6d61
Updates and small fixes for CI (#3178) 2021-10-07 18:54:38 +02:00
Igor Pečovnik
21f13b4ba5
CI pipeline refactoring (#3173) 2021-10-06 22:47:23 +02:00
Igor Pecovnik
4556ebc0fa
We need this file for testing actions 2021-10-05 16:49:55 +02:00
Igor Pečovnik
281848127d
Update update-repository.yml 2021-10-05 08:55:35 +02:00
Igor Pecovnik
82dc4dbb73
Moving update repository in separate action 2021-10-05 08:06:02 +02:00
Igor Pecovnik
2bd254851e
Add script for building kernels new way 2021-09-30 21:02:24 +02:00
Igor Pečovnik
da885ae2c5
Add script for maintaining runners 2021-09-30 13:42:02 +02:00
Igor Pečovnik
355c871cec
Add U-boot CI build script (#3164) 2021-09-28 19:21:03 +02:00
Igor Pečovnik
069f2d2df4
Bugfix - install git on a clean runner before starting compile.sh (#3163) 2021-09-28 18:03:54 +02:00
Igor Pečovnik
79b3975986
CI bugfix (#3160) 2021-09-26 12:12:31 +02:00
Igor Pecovnik
71e6cf9ab3
CI Bugfix - set default value when action is triggered by another
If action is triggered by another action we don't get value for how many build chunks we will have. Defaulting to 22 seems like a reasonable value in current situation - having 14 build runners.
2021-09-26 09:37:04 +02:00
Igor Pečovnik
e8c5d07a89
Switch to matrix jobs scheduler and upload build logs (#3157) 2021-09-26 08:42:24 +02:00
Igor Pečovnik
c18563980b
CI: Wait for background processes to finish (#3156) 2021-09-21 08:55:25 +02:00
Igor Pečovnik
208f3780cd
Update build.yml 2021-09-04 08:05:07 +02:00
Igor Pečovnik
1d17ab2592
Update build.yml 2021-09-04 08:01:16 +02:00
Igor Pecovnik
66e98e9827
Don't clean debs 2021-08-26 08:18:53 +02:00
Igor Pecovnik
60ac029b7a
Add option to inject prebuild debs to the runners 2021-08-25 19:55:36 +02:00
Igor Pečovnik
2e4446a143
Github action timeout bugfix 2021-08-22 00:19:00 +02:00
Igor Pečovnik
7898aebe8d
Double workers (#3075)
* Double workers

* Bugfix - adjust sufix

* Yet another bugfix

* What the heck. Lets double it once again ;)

* Bugfix

* Bugfix
2021-08-05 19:24:04 +02:00
Igor Pecovnik
12a0a80915 Our build pipelines can easily exceeds default Github jobs timeouts
Defaults are sets to 6 hours. Lets double it to 12 hours. If some worker still doesn't finish his job, we should consider removing it.
2021-07-23 14:33:40 +02:00
Igor Pečovnik
98d128df83
Additional fixes for CI runners (#3048)
* Trying

* update

* typo fix

* Bugfix - create directory prior copying config there

* More tiny bugfixes to build all beta and stable

* Adjust namings
2021-07-22 17:19:25 +02:00
Igor Pecovnik
4eeafeaa70 CI: Update / fix worker names 2021-07-22 11:41:42 +02:00
Igor Pečovnik
02dbeda3bc
Github actions update for making stable images (#3040)
* Make RC runner more universal and fix a bug in build beta images - calculating wrong paralleling parameter
* We don't need separate build config for RC images
2021-07-22 11:22:02 +02:00
lanefu
b1d82308db
RC upload flag (#3027)
* RC upload flag

* Update build-all-ng.sh

* Try RC Images

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2021-07-19 20:36:46 -04:00
Igor Pecovnik
0a92e39054 CI runners bugfix - better runner cleaning 2021-07-10 18:38:46 +02:00
lanefu
ec9a776aa1
need to clean debs-beta before run 2021-07-09 21:38:20 -04:00
Igor Pecovnik
48b5944470 Another Github runner functionality adjustement
When synching from our main rsync, lets remove cache that is not needed
2021-07-01 20:53:10 +02:00
Igor Pecovnik
39393ff4c7 Updating Github runner to update rootfs on each step 2021-07-01 20:43:04 +02:00
Igor Pečovnik
ca882616da
Synching Github runners cache with upstream (#2949)
* Improving Github actions for creating images
* Update single image building as well
2021-07-01 18:28:42 +02:00
Igor Pečovnik
9d1ed95d9a
Add cache rootfs creation cleanup for old files to Github Actions (#2947) 2021-07-01 16:23:39 +02:00
Igor Pecovnik
7c87bbd368 Github Action fix 2021-06-21 16:16:19 +02:00
Igor Pečovnik
c52a550380
Fixing wrong image type when building selected images with Github actions (#2912) 2021-06-21 14:45:19 +02:00
Igor Pečovnik
0f68faa917
Actions - missing gpg for nightly version bump 2021-06-18 11:03:40 +02:00
Igor Pecovnik
d166d16377 Githug Actions bugfix and optimisations 2021-06-14 21:26:08 +02:00
Igor Pečovnik
e65c7a9f80
Add image making action (#2897)
* Add image making action

* Security fix

* Add more info to the commit message
2021-06-14 18:59:04 +02:00
Igor Pecovnik
cdea7ae389 Making more conservative parallel build numbers 2021-06-13 15:53:33 +02:00
Igor Pecovnik
a2b3dc2afc Making less images in parallel. Still getting OOM 2021-06-13 13:04:50 +02:00
Igor Pecovnik
ce41a39cd0 Tabs to spaces 2021-06-13 12:24:27 +02:00
Igor Pecovnik
4de37cab53 Improve killing process and rename action 2021-06-13 12:21:31 +02:00
Igor Pecovnik
a3564988ac Adjust parallel build ratio 2021-06-13 12:18:19 +02:00
Igor Pecovnik
4d51b19596 Enable building desktop images 2021-06-13 11:56:37 +02:00
Igor Pecovnik
d78f8aa5eb Size of CLI images is much smaller, so we can enable more concurrent builds 2021-06-13 11:15:16 +02:00
Igor Pecovnik
2685dd43bb It doesn't go without bugs 2021-06-13 00:30:27 +02:00
Igor Pecovnik
af1811bdc4 Add two more runners for image building process 2021-06-13 00:19:45 +02:00
Igor Pecovnik
6c1326b896 fix 2021-06-12 20:32:55 +02:00
Igor Pecovnik
e3aed2ed54 Github actions - move clening to the first place 2021-06-12 19:59:09 +02:00
Igor Pecovnik
3b0f40ec50 Backend: runners cleaning bugfix 2021-06-12 17:11:47 +02:00
Igor Pecovnik
e8141aff1c Backend: Make sure no temporally dirs are mounted from previous runs 2021-06-12 16:57:43 +02:00
Igor Pecovnik
e16f53af93 Lets have a dedicated tag for runners that will build images 2021-06-12 16:22:57 +02:00
Igor Pecovnik
21a55a7a59 Bugfix - we were not using correct key 2021-06-12 09:49:00 +02:00
Igor Pečovnik
0a669eb149
Add images building action (#2893)
* Add images building action

* Small security fix

* Bugfix
2021-06-12 07:47:51 +02:00
Igor Pečovnik
951d6bc26e
CI needs to merge nightly from master before start (#2892)
Also changed cronjob for start
2021-06-10 23:28:33 +02:00
Igor Pečovnik
bd222470d5
Fix permissions 2021-06-10 21:06:39 +02:00
lanefu
133b0d6b9e
assure test pr runs on big runners 2021-06-10 06:48:37 -04:00
Igor Pečovnik
5a4383b97c
Disable on push
Use cron and manual run for now
2021-06-10 11:18:48 +02:00
Igor Pečovnik
865ee53334
Update docker-to-hub.yml 2021-06-10 11:05:03 +02:00
Igor Pečovnik
863a009461
Set new CI pipeline as default. (#2891)
* Set new CI pipeline as default.

* cleanup
2021-06-10 11:03:49 +02:00
Igor Pecovnik
a0d2db2ace Supress error in case we remove all hash files 2021-06-09 18:09:11 +02:00
Igor Pečovnik
cd6af68ceb
Quick fixes for CI (#2888)
* Fixes
* Remove not needed target
* cleanup
2021-06-09 17:53:05 +02:00
Igor Pecovnik
5e1e8f101a Move Docker creation to public runner 2021-06-09 15:15:40 +02:00
Igor Pecovnik
4d84bd204b CI related bugfix 2021-06-09 13:22:09 +02:00
Igor Pecovnik
8a9ad79c9e Bugfix for CI actions - adding proper variable 2021-06-09 12:04:28 +02:00
Igor Pečovnik
e017b28cef
Enable advanced CI (#2885)
* Enable advanced CI
* Disable cron for now# Please enter the commit message for your changes. Lines starting
* Don't delete current CI yet
* Update name
* Bufix
* Check ownership
* Update secrets
2021-06-09 11:35:26 +02:00
Igor Pečovnik
9b0dd2b839
Fix broken Docker support (#2804)
* lsb-release package is getting deprecated

It is not present on Hirsute anymore so we better remove its dependency

* - remove lsb-release dependency from docker
- exit if Docker version is too low (check works only on Ubuntu builds, else doesn't do anything)

Reference: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1916485

* Cleanup

* Remove quotes for proper pkg install

* Automatically upgrade Docker engine

* Missing python dependencies

* Bugfix - debian name is not just one word

* Put this back

* provoke error

* Revert

* Adjust Github runner to make bionic and focal and compile u-boot for test

* Adjust cron

* Remove Bionic, cron back to 14 days

* Change to ubuntu-latest
2021-05-02 18:06:38 +02:00
Lane Jennison
74642ebbc0 limit builds to armbian repo 2021-05-02 11:29:21 -04:00
Igor Pecovnik
e1b237ff0c Change build cron from every hour to every 3 hours
There is no need to check so often even it doesn't make any load
2021-02-02 02:14:47 +01:00
Igor Pečovnik
a07c6f6349
Update cron-beta-repository.yaml 2021-02-01 15:10:49 +01:00
Igor Pecovnik
5b1218d56e Add another GitHub action to build beta packages on push or cron 2021-02-01 13:56:20 +01:00
Igor Pečovnik
0273551b7e
Fix Docker image creation 2021-02-01 11:19:31 +01:00
lanefu
de1f3c6309
prepare for multiarch ci
assure current job runs on x64
2020-12-27 10:28:28 -05:00
lanefu
22b5615594
try json output for future report tracking (#2072)
* try json output for future report tracking

* change bash env for shellcheck

* changes shellcheck step name
2020-06-29 23:18:17 -04:00
lanefu
537f8437ff
user newer shellcheck, with less aggress coverage (#2058) 2020-06-24 14:41:19 +02:00
lanefu
9f22c41b56
big fix for sudo chown 2020-06-17 23:58:06 -04:00
lanefu
176b7318f6
Add Shell check CI testing (#2033)
* using bash-based shellcheck instead of GitHub Marketplace action
* add color shellcheck option
2020-06-17 21:48:22 -04:00
Igor Pečovnik
27aa5ff727
Removing doubled action 2020-06-17 21:23:12 +02:00
lanefu
1ff911b57a
This Replicates the functionality of our Jenkins test-pr job (#2031)
move Jenkins pr testing to GitHub actions.

uses same logic for detecting changes in PR.

requires runner with public label
2020-06-17 15:20:08 -04:00
Igor Pečovnik
81747cc060
Create action to build Docker images (#2020)
Update them every two weeks

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-17 13:05:06 +02:00
Igor Pečovnik
4fa07e52ae
Enable GH action based CI for merge request (#2029) 2020-06-17 13:01:55 +02:00