Pete Fotheringham
77f209cd0d
new_build.sh must be executable
2024-09-02 17:38:23 +01:00
Pete Fotheringham
c4fe3d74d3
Another shellcheck error
2024-09-02 16:05:07 +01:00
Pete Fotheringham
800cfad229
Call end.sh
2024-09-02 16:03:49 +01:00
Pete Fotheringham
eb1b7fa107
Check userscriptfail *for each device*. Exit immediately if true
2024-09-02 16:00:14 +01:00
Pete Fotheringham
5b66b04504
Fix shellcheck errors
2024-09-02 15:54:17 +01:00
Pete Fotheringham
1f7c41500f
Call post-build.sh and clean up
2024-09-02 15:39:14 +01:00
Pete Fotheringham
926866cb32
Remove old zips and logs
2024-09-02 15:27:46 +01:00
Pete Fotheringham
3f1fdc1928
Call mka and handle the outcome
2024-09-02 15:23:46 +01:00
Pete Fotheringham
264eee5c36
Call pre-build.sh
2024-09-02 15:06:46 +01:00
Pete Fotheringham
f2ceed579c
Call breakfast
2024-09-02 15:05:15 +01:00
Pete Fotheringham
bc6051d962
Call before.sh (and correct doc comment)
2024-09-02 15:03:00 +01:00
Pete Fotheringham
f5df79adc2
Custom packages, keys and environment setup
2024-09-02 14:09:51 +01:00
Pete Fotheringham
571d8d4567
Add repo sync
2024-09-02 13:56:41 +01:00
Pete Fotheringham
b8b65c657b
Add repo init
2024-09-02 13:54:23 +01:00
Pete Fotheringham
87964b2ad2
Setup subdirectories
2024-09-02 13:44:21 +01:00
Pete Fotheringham
0e081d03ec
Setup overlays
2024-09-02 13:38:30 +01:00
Pete Fotheringham
048dcb7884
Add main per-device loop
2024-09-02 13:27:43 +01:00
Pete Fotheringham
2515eebd4e
Handle BRANCH_NAME and DEVICE_LIST earlier
2024-09-02 13:08:02 +01:00
Pete Fotheringham
b053978b38
Branch-specific stuff
2024-09-02 13:05:20 +01:00
Pete Fotheringham
d202e8ec05
Init & sync the mirror
2024-09-02 13:03:30 +01:00
Pete Fotheringham
0e99bf6486
Handle local manifests
2024-09-02 12:49:35 +01:00
Pete Fotheringham
e4a99b43c0
Handle PARALLEL_JOBS and RETRY_FETCHES
2024-09-02 11:51:16 +01:00
Pete Fotheringham
3e3f2365e5
Handle CLEAN_OUTDIR
2024-09-02 11:49:45 +01:00
Pete Fotheringham
e71904ff3b
Add call to begin.sh
2024-09-02 11:44:57 +01:00
Pete Fotheringham
8b67dbd91f
Add do_cleanup
function
2024-09-02 11:39:24 +01:00
Pete Fotheringham
b76678c67b
Add outline documentation
2024-09-02 11:36:26 +01:00
Pete Fotheringham
cada06e48e
For 21.0 builds, call new_build.sh
2024-09-02 08:17:59 +01:00
Pete Fotheringham
685f897d30
Add new_build.sh
2024-09-02 08:10:57 +01:00
Pete Fotheringham
c0c3ac7fc2
Make boot_init.img available if it exists
...
Fixes #661
2024-08-30 22:24:59 +01:00
Pete Fotheringham
653a0d68f4
Correct the description of what is built
2024-08-30 22:19:17 +01:00
Pete Fotheringham
1232b209cd
Update README.md: typ
2024-08-30 22:19:17 +01:00
Pete Fotheringham
abb2fff405
Add words about running docker as non-root user
2024-08-30 22:19:17 +01:00
ryneeverett
5a35f88de9
Improve userscript error handling
...
Resolve #665 .
The current behavior of merely logging a warning when a hook fails is
not ideal. For many (if not all) use cases a failure of these hooks
effectively means a failure of the build because the output files are
not aligned with intent.
An improvement of this behavior should have the following
characteristics:
- facilitate programmatic detection of failures without parsing the
output
- avoid building images for devices/branches that already have failed
hooks
This PR tries to strike a balance between exiting immediately on failure
and continuing the build matrix:
- if begin.sh fails, end the process immediately
- if before.sh fails, skip the branch
- if pre-build.sh fails, skip the branch/device
- if any userscript fails, give a non-zero exit code
With this change, I would also question whether running post-build.sh
twice is still necessary for visibility.
I tested the changes by creating all 5 userscript files, setting them to
`exit 0`, running the build and confirming it succeeded. I then re-ran
the build 5 times, each time setting one of the files to `exit 1` and
verifying that the build failed with appropriate output.
2024-08-30 22:19:17 +01:00
Pete Fotheringham
dd018f817b
Add some words on Failed updates and 'boot loops'
2024-08-18 15:50:07 +01:00
Pete Fotheringham
faf4c902f0
Add some words about upgrading and downgrading
2024-08-16 21:52:15 +01:00
dependabot[bot]
17f045eb3e
Bump docker/build-push-action from 6.5.0 to 6.7.0
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 6.5.0 to 6.7.0.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](5176d81f87...5cd11c3a4c
)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-13 18:29:47 +01:00
Pete Fotheringham
3ebd52f84d
Update README.md: changes LOS branch names master -> main
2024-08-13 18:20:31 +01:00
Pete Fotheringham
98e91c2d93
Update README.md: We've moved the archive of old builds
2024-07-30 08:33:39 +01:00
dependabot[bot]
6f2a914287
Bump docker/build-push-action from 6.2.0 to 6.5.0
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 6.2.0 to 6.5.0.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](15560696de...5176d81f87
)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-25 07:18:06 +01:00
dependabot[bot]
c62921077b
Bump docker/login-action from 3.2.0 to 3.3.0
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](0d4c9c5ea7...9780b0c442
)
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-25 07:17:44 +01:00
dependabot[bot]
e487d3fdc4
Bump docker/build-push-action from 6.1.0 to 6.2.0
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](31159d49c0...15560696de
)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-30 19:30:29 +01:00
Pete Fotheringham
92554cc189
Don't generate cygn-app
& test
keys
2024-06-22 22:18:34 +01:00
Pete Fotheringham
7fc4f1cc40
Move BUILD file generation out of key generation loop
...
Fix indentation
2024-06-22 22:18:34 +01:00
Pete Fotheringham
fcbd813cb1
Add the other keys mentioned in the 'Signing Builds' wiki page, that we don't currently generate: cyngn-app,testcert, testkey, verity
2024-06-22 22:18:34 +01:00
Pete Fotheringham
32d77f3f9d
Add the new nfc
key
2024-06-22 22:18:34 +01:00
Pete Fotheringham
8edb7fe79f
Simplify the key generation code:
...
create any keys that are missing, no need to report an error
2024-06-22 22:18:34 +01:00
Pete Fotheringham
8bd27dd223
Merge pull request #643 from lineageos4microg/dependabot/github_actions/docker/build-push-action-6.1.0
...
Bump docker/build-push-action from 5.3.0 to 6.1.0
2024-06-21 20:49:26 +01:00
dependabot[bot]
79bcdce9d4
Bump docker/build-push-action from 5.3.0 to 6.1.0
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 5.3.0 to 6.1.0.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](2cdde995de...31159d49c0
)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 13:58:56 +00:00
Pete Fotheringham
2f931a76b2
Merge pull request #635 from lineageos4microg/dependabot/github_actions/docker/login-action-3.2.0
...
Bump docker/login-action from 3.1.0 to 3.2.0
2024-05-28 14:24:21 +01:00
dependabot[bot]
414a5abf10
Bump docker/login-action from 3.1.0 to 3.2.0
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](e92390c5fb...0d4c9c5ea7
)
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-28 13:12:11 +00:00