use settings block

This commit is contained in:
Vri 🌈 2023-05-16 20:23:43 +02:00
parent 1275ad4d94
commit d0133227be
Signed by: vrifox
SSH key fingerprint: SHA256:7OLOvW+jmULkXpdl5rUWgid7WJQhOIEgj+4WP/PtCpI

View file

@ -1,13 +1,13 @@
pipeline:
build-and-push:
image: plugins/docker
registry: code.cozy.town
username: ${REGISTRY_USERNAME}
password: ${REGISTRY_TOKEN}
repo: code.cozy.town/vrifox/hugoci
tags:
- latest
cache_from: code.cozy.town/vrifox/hugoci:latest
secrets:
- registry_username
- registry_token
settings:
registry: code.cozy.town
username:
from_secret: registry_username
password:
from_secret: registry_token
repo: code.cozy.town/vrifox/hugoci
tags:
- latest
cache_from: code.cozy.town/vrifox/hugoci:latest