Skip to content

Commit

Permalink
Support sign apk feed
Browse files Browse the repository at this point in the history
  • Loading branch information
morytyann committed Nov 14, 2024
1 parent a391eb7 commit 9f25772
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ The action reads a few env variables:
`action`.
* `IGNORE_ERRORS` can ignore failing packages builds.
* `INDEX` makes the action build the package index. Default is 0. Set to 1 to enable.
* `KEY_BUILD` can be a private Signify/`usign` key to sign the packages feed.
* `KEY_BUILD` can be a private Signify/`usign` key to sign the packages (ipk) feed.
* `PRIVATE_KEY` can be a private key to sign the packages (apk) feed.
* `NO_DEFAULT_FEEDS` disable adding the default SDK feeds
* `NO_REFRESH_CHECK` disable check if patches need a refresh.
* `NO_SHFMT_CHECK` disable check if init files are formated
Expand Down
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ runs:
--env FEEDNAME \
--env IGNORE_ERRORS \
--env KEY_BUILD \
--env PRIVATE_KEY \
--env NO_DEFAULT_FEEDS \
--env NO_REFRESH_CHECK \
--env NO_SHFMT_CHECK \
Expand Down
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ if [ -n "$KEY_BUILD" ]; then
CONFIG_SIGNED_PACKAGES="y"
fi

if [ -n "$PRIVATE_KEY" ]; then
echo "$PRIVATE_KEY" > private-key.pem
CONFIG_SIGNED_PACKAGES="y"
fi

if [ -z "$NO_DEFAULT_FEEDS" ]; then
sed \
-e 's,https://git.openwrt.org/feed/,https://github.com/openwrt/,' \
Expand Down

0 comments on commit 9f25772

Please sign in to comment.