fix(ci): remove docker login

This commit is contained in:
nikurasu 2024-03-18 14:10:31 +01:00
parent 58c84b2f9b
commit 7f1e97a37c
Signed by: Nikurasu
GPG key ID: 9E7F14C03EF1F271

View file

@ -9,8 +9,7 @@ steps:
- MINOR=$(echo ${CI_COMMIT_TAG} | cut -d '.' -f 2) - MINOR=$(echo ${CI_COMMIT_TAG} | cut -d '.' -f 2)
- PATCH=$(echo ${CI_COMMIT_TAG} | cut -d '.' -f 3) - PATCH=$(echo ${CI_COMMIT_TAG} | cut -d '.' -f 3)
- docker buildx build -t $${REGISTRY}/$${REPO}:v$${MAJOR:-0}.$${MINOR:-0}.$${PATCH-0} -t $${REGISTRY}/$${REPO}:v$${MAJOR:-0}.$${MINOR} -t $${REGISTRY}/$$REPO:v$${MAJOR:-0} -t $${REGISTRY}/$$REPO:latest . - docker buildx build -t $${REGISTRY}/$${REPO}:v$${MAJOR:-0}.$${MINOR:-0}.$${PATCH-0} -t $${REGISTRY}/$${REPO}:v$${MAJOR:-0}.$${MINOR} -t $${REGISTRY}/$$REPO:v$${MAJOR:-0} -t $${REGISTRY}/$$REPO:latest .
- docker login $${REGISTRY} - echo $PASS | docker login --username $USER --password-stdin $${REGISTRY}
- echo $PASS | docker login --username $USER --password-stdin
- docker push $${REGISTRY}/$${REPO}:v$${MAJOR:-0}.$${MINOR:-0}.$${PATCH-0} - docker push $${REGISTRY}/$${REPO}:v$${MAJOR:-0}.$${MINOR:-0}.$${PATCH-0}
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock