Skip to content

Commit

Permalink
Add custom backend URL support (#28)
Browse files Browse the repository at this point in the history
Add support of a custom OTA update service that runs the Thistle
procotol. If no custom backend URL is provided, the default Thistle
backend will be used.
  • Loading branch information
syncom authored May 30, 2024
1 parent 86bce8f commit 43df52f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ inputs:
description: 'Password for the signing key. Required only if signing_key_management is "local" and the signing key is password protected'
required: false
default: ''
backend_url:
description: 'URL of the backend server that runs the OTA update service. If not provided, the Thistle service will be used'
required: false
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
Expand Down
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# INPUT_SIGNING_KEY_MANAGEMENT
# INPUT_SIGNING_KEY
# INPUT_SIGNING_KEY_PASSWORD
# INPUT_BACKEND_URL
#

set -euxo pipefail
Expand All @@ -34,6 +35,7 @@ readonly TRH_DOWNLOAD_URL
export THISTLE_KEY="${HOME}/.minisign/minisign.key"
export THISTLE_KEY_PASS="${INPUT_SIGNING_KEY_PASSWORD}"
export THISTLE_TOKEN="${INPUT_PROJECT_ACCESS_TOKEN}"
[ -z "${INPUT_BACKEND_URL}" ] || export THISTLE_BACKEND="${INPUT_BACKEND_URL}"

err() {
echo -e "$*"
Expand Down

0 comments on commit 43df52f

Please sign in to comment.