forked from Mirrors/elk
fix(ci): deleted sh uncompatible line
This commit is contained in:
parent
b221687139
commit
68ffb627e7
1 changed files with 1 additions and 2 deletions
|
@ -4,11 +4,10 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- apk add git
|
- apk add git
|
||||||
- REPO=$(echo "$CI_REPO" | tr '[:upper:]' '[:lower:]')
|
- 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')
|
- MAJOR=$(echo ${CI_COMMIT_TAG} | cut -d '.' -f 1 | tr -d 'v')
|
||||||
- MINOR=$(echo ${CI_COMMIT_TAG} | cut -d '.' -2)
|
- MINOR=$(echo ${CI_COMMIT_TAG} | cut -d '.' -2)
|
||||||
- PATCH=$(echo ${CI_COMMIT_TAG} | cut -d '.' -3)
|
- 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 .
|
- 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:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
Loading…
Reference in a new issue