From 6713329a5e49ab783a48ec0212490f3b88f60039 Mon Sep 17 00:00:00 2001 From: nikurasu Date: Mon, 18 Mar 2024 14:00:02 +0100 Subject: [PATCH] fix(ci): add docker login --- .woodpecker.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 822e7760..29fe45db 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,6 +9,8 @@ steps: - MINOR=$(echo ${CI_COMMIT_TAG} | cut -d '.' -f 2) - 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 login $${REGISTRY} + - echo $PASS | docker login --username $USER --password-stdin - docker push $${REGISTRY}/$${REPO}:v$${MAJOR:-0}.$${MINOR:-0}.$${PATCH-0} volumes: - /var/run/docker.sock:/var/run/docker.sock