From 68ffb627e712083c88c2cbebb845ea900ad2b8d0 Mon Sep 17 00:00:00 2001 From: nikurasu Date: Mon, 18 Mar 2024 13:37:51 +0100 Subject: [PATCH] fix(ci): deleted sh uncompatible line --- .woodpecker.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index e6a4e8f3..1c0cfb52 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,11 +4,10 @@ steps: commands: - apk add git - REPO=$(echo "$CI_REPO" | tr '[:upper:]' '[:lower:]') - - IFS='.' read -r MAJOR MINOR FIX <<< "$VERSION" + - 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) - - REGISTRY="dev.cat-enby.club" - 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