From 5bd9dce91ee55b67c544cb9fc54422c477c5b2f7 Mon Sep 17 00:00:00 2001 From: nikurasu Date: Mon, 18 Mar 2024 13:39:40 +0100 Subject: [PATCH] fix(ci): added missing flag for cut --- .woodpecker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 1c0cfb52..1c91843d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,8 +6,8 @@ steps: - REPO=$(echo "$CI_REPO" | tr '[:upper:]' '[:lower:]') - REGISTRY="dev.cat-enby.club" - MAJOR=$(echo ${CI_COMMIT_TAG} | cut -d '.' -f 1 | tr -d 'v') - - MINOR=$(echo ${CI_COMMIT_TAG} | cut -d '.' -2) - - PATCH=$(echo ${CI_COMMIT_TAG} | cut -d '.' -3) + - 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} $${REGISTRY}/$$REPO:v$${MAJOR:-0} $${REGISTRY}/$$REPO:latest . volumes: - /var/run/docker.sock:/var/run/docker.sock