From 35b4c80311ee3c5425bce4d3c45927fc2391f844 Mon Sep 17 00:00:00 2001 From: nikurasu Date: Mon, 18 Mar 2024 14:50:56 +0100 Subject: [PATCH] fix(ci): add missing docker pushes --- .woodpecker.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 49be00ea..f39fb5c1 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -8,10 +8,13 @@ steps: - REGISTRY="dev.cat-enby.club" - MAJOR=$(echo ${CI_COMMIT_TAG} | cut -d '.' -f 1 | tr -d 'v') - 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 | cut -d '-' -f 1) - 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 --username $USER --password $PASS $${REGISTRY} - docker push $${REGISTRY}/$${REPO}:v$${MAJOR:-0}.$${MINOR:-0}.$${PATCH-0} + - docker push $${REGISTRY}/$${REPO}:v$${MAJOR:-0}.$${MINOR} + - docker push $${REGISTRY}/$${REPO}:v$${MAJOR:-0} + - docker push $${REGISTRY}/$${REPO}:latest volumes: - /var/run/docker.sock:/var/run/docker.sock when: