feat(install): Support using GitHub token when fetching latest release

This commit is contained in:
2020-01-22 00:13:43 +00:00
parent 570524a786
commit 9c96bdd212
2 changed files with 7 additions and 0 deletions

View File

@@ -3,6 +3,12 @@
# release via GitHub API.
adguardhome_version: "latest"
# When desired version is "latest", use GITHUB_TOKEN environment variable when
# looking up the latest release via GitHub's API. If you get rate limit errors
# from GitHub's API, turni this on and set the GITHUB_TOKEN environment variable
# to a Personal Access Token with "repo" and "user" scopes.
adguardhome_use_github_token: false
# User to run AdGuard Home under. Must initially be "root" if no conig file is
# on disk. After going through the setup wizard, or manually adding a config
# file, this can be set to something else, like "adguard" for example.

View File

@@ -9,6 +9,7 @@
action: latest_release
user: AdguardTeam
repo: Adguardhome
token: "{% if adguardhome_use_github_token %}{{ lookup('env', 'GITHUB_TOKEN') }}{% endif %}"
register: adguardhome_latest_release
- name: Set desired version to version of latest release