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
|
# zot
|
||||||
# renovate: datasource=github-releases depName=project-zot/zot versioning=pep440
|
# renovate: datasource=github-releases depName=project-zot/zot versioning=pep440
|
||||||
zot_version: "2.1.16"
|
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"
|
dest: "/etc/zot/config.json"
|
||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: "0644"
|
mode: "0600"
|
||||||
notify: "restart zot"
|
notify: "restart zot"
|
||||||
|
|
||||||
# create systemd service
|
# create systemd service
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,12 @@
|
||||||
"registries": [
|
"registries": [
|
||||||
{
|
{
|
||||||
"urls": ["https://registry-1.docker.io"],
|
"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,
|
"onDemand": true,
|
||||||
"tlsVerify": true,
|
"tlsVerify": true,
|
||||||
"maxRetries": 3,
|
"maxRetries": 3,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue