Update CI pipeline command to securely login to GitLab registry

This commit is contained in:
Roger Gonzalez 2024-12-15 14:52:00 -03:00
parent 7a88ced828
commit 8d1f698015
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -30,7 +30,7 @@ deploy_to_gitlab:
services: services:
- docker:dind - docker:dind
before_script: before_script:
- docker login registry.gitlab.com -u $GITLAB_USERNAME -p $GITLAB_PASSWORD - echo "$GITLAB_PASSWORD" | docker login registry.gitlab.com -u "$GITLAB_USERNAME" --password-stdin
- docker buildx create --use - docker buildx create --use
script: script:
- docker buildx build --push --tag registry.gitlab.com/rogs/bitwarden-to-keepass:latest . - docker buildx build --push --tag registry.gitlab.com/rogs/bitwarden-to-keepass:latest .