feat: add dockerhub credentials
This commit is contained in:
parent
62c7f10618
commit
b9f158c30f
3 changed files with 11 additions and 1 deletions
|
|
@ -3,3 +3,7 @@
|
|||
# zot
|
||||
# renovate: datasource=github-releases depName=project-zot/zot versioning=pep440
|
||||
zot_version: "2.1.16"
|
||||
|
||||
# dockerhub credentials (optional, avoids rate limits)
|
||||
# zot_dockerhub_username: ""
|
||||
# zot_dockerhub_password: ""
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
dest: "/etc/zot/config.json"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
mode: "0600"
|
||||
notify: "restart zot"
|
||||
|
||||
# create systemd service
|
||||
|
|
|
|||
|
|
@ -44,6 +44,12 @@
|
|||
"registries": [
|
||||
{
|
||||
"urls": ["https://registry-1.docker.io"],
|
||||
{% if zot_dockerhub_username is defined and zot_dockerhub_password is defined %}
|
||||
"credentials": {
|
||||
"username": "{{ zot_dockerhub_username }}",
|
||||
"password": "{{ zot_dockerhub_password }}"
|
||||
},
|
||||
{% endif %}
|
||||
"onDemand": true,
|
||||
"tlsVerify": true,
|
||||
"maxRetries": 3,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue