1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00
Commit Graph

476 Commits

Author SHA1 Message Date
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
Pete Fotheringham
f497148e21 Fix building of _img.zip file
Fixes #620
2024-05-24 19:31:19 +01:00
Pete Fotheringham
462378cf28 Update build.sh: try using target-files-package build target
May fix #627
2024-05-24 19:31:19 +01:00
Pete Fotheringham
ae2a4cdc83
Merge pull request #619 from lineageos4microg/new-fix-A14-patches
New fix a14 patches
2024-04-29 17:32:43 +01:00
Pete Fotheringham
1562638333 Add the FlaggedAPI back 2024-04-28 22:18:45 +01:00
Pete Fotheringham
d37955c0a7 Correct the detection of whether the frameworks_base_patch is set 2024-04-28 21:42:31 +01:00
Pete Fotheringham
9e272c4857 Improve the comment for applying the 'user' build patch 2024-04-28 20:38:21 +01:00
Pete Fotheringham
cb1d2d4192 We changed the api, so we need to regenerate current.txt 2024-04-28 20:35:10 +01:00
Pete Fotheringham
4a76ef4404
Merge pull request #612 from lineageos4microg/nns-v21-spoofing-patches
Nns v21 spoofing patches
2024-04-28 19:36:15 +01:00
Pete Fotheringham
2bec2f85be
Merge pull request #615 from FintasticMan/restore-a14-patch
Restore A14 patches (not working), fix user patch
2024-04-24 17:13:01 +01:00
FintasticMan
ad19be5942
Restore A14 patches (not working), fix user patch
This restores the (still currently non-functional) Android 14 signature
spoofing patches, so that, once they have been fixed, users will be able
to create unrestricted patches.

These changes also mean that the error faced by @gwstorm is fixed.
2024-04-24 17:59:42 +02:00
Pete Fotheringham
1f39ff9d1f
Add website text about arhcived builds of old devices 2024-04-21 15:26:12 +01:00
Pete Fotheringham
89d5c3ce6b
Merge pull request #611 from lineageos4microg/dependabot/docker/ubuntu-1b8d8ff
Bump ubuntu from `77906da` to `1b8d8ff`
2024-04-19 19:04:31 +01:00
dependabot[bot]
fea1555fe3
Bump ubuntu from 77906da to 1b8d8ff
Bumps ubuntu from `77906da` to `1b8d8ff`.

---
updated-dependencies:
- dependency-name: ubuntu
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 13:26:47 +00:00
Pete Fotheringham
88225d546f
Merge pull request #608 from nnsee/master
Remove "old" signature spoofing patches for LineageOS 21, and introduce patch which enables it even in the user build variant
2024-04-09 20:48:40 +01:00
Rasmus Moorats
5954c5c652 fix typo in readme 2024-04-09 21:23:41 +03:00
Rasmus Moorats
baf7001457 ensure that build doesn't fail when SIGNATURE_SPOOFING is set but no patches are present 2024-04-09 21:19:51 +03:00
Rasmus Moorats
fc017cb2ed
Introduce env var USER_BUILD_SPOOFING
If set to "yes", applies a patch which allows LineageOS' built-in
signature spoofing to function even in the user build variant, not just
userdebug or eng.
2024-04-09 17:41:00 +03:00
Rasmus Moorats
d9f25d3b55
Revert "Update documentation to reflect status of signature spoofing in LOS 21"
This reverts commit 451b0a11eb0410fb90f4e54061a561ecf2b341f6.
2024-04-09 17:14:55 +03:00
Rasmus Moorats
451b0a11eb
Update documentation to reflect status of signature spoofing in LOS 21 2024-04-09 15:47:49 +03:00
Rasmus Moorats
f10d8e2c5b
Disable old signature spoofing patch for LOS 21
LineageOS 21 introduced built-in support for signature spoofing. The
commit removes the old signature spoofing for LOS 21 (which failed to
build properly) and instead replaces it with a patch which enables
signature spoofing even on builds that aren't "debuggable" like dev and
userdebug, meaning regular user builds also support signature spoofing.

However, since the LineageOS signature spoofing functionality
specifically only applies to microG, this means that "unrestricted"
signature spoofing is no longer possible for LOS 21.

Related GitHub issue: #607
2024-04-09 15:23:48 +03:00
Pete Fotheringham
77fd74aa66
Merge pull request #601 from lineageos4microg/pf-otaimage-and-bacon
Use `mka otaimage bacon`
2024-04-04 17:44:57 +01:00
Pete Fotheringham
901a33a1d2 Tidy up code and comments 2024-04-04 17:33:57 +01:00
Pete Fotheringham
04b2d1689e Fix path of IMAGES directory for 21.0 2024-04-04 10:24:46 +01:00
Pete Fotheringham
fa45feae0b No need to rename the image file 2024-04-03 22:16:04 +01:00
Pete Fotheringham
13e9fa8f25 Use mka otaimage bacon: see if we hit the posix spawn error 2024-04-03 19:11:52 +01:00
Pete Fotheringham
eab994df66
Merge pull request #600 from lineageos4microg/pf-functionise-cleanup
Move cleanup code to a function.
2024-04-03 18:51:13 +01:00
Pete Fotheringham
393bf05478 Move cleanup code to a function. Call it after breakfast fails or build completes 2024-04-03 18:41:14 +01:00
Pete Fotheringham
cfc5745d04 Update build.sh: correct name of ota zip file 2024-03-31 08:06:57 +01:00