Rework registry login

This commit is contained in:
Keannu Bernasol 2024-08-30 18:27:17 +08:00
parent 396b34c7a7
commit 8ab64d8dd9

View file

@ -7,7 +7,7 @@ steps:
- event: push
commands:
- docker build . -t git.keannu1.duckdns.org/keannu125/drf_template
- echo "${REGISTRY_PASSWORD:?}" | docker login --password-stdin -u "${REGISTRY_USERNAME:?}" -- "${CI_REGISTRY:?}"
- echo "$REGISTRY_PASSWORD" | docker login --password-stdin -u "$REGISTRY_USERNAME" -- "$CI_REGISTRY"
- docker push git.keannu1.duckdns.org/keannu125/drf_template
volumes:
- /var/run/docker.sock:/var/run/docker.sock