Skip to content

Commit 66cfdd1

Browse files
committed
ci: use portable shell commands
1 parent 03b5a60 commit 66cfdd1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.woodpecker/release.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ steps:
3333
validate-tag:
3434
image: alpine:latest
3535
commands:
36-
- apk add --no-cache bash
3736
- |
3837
TAG="${CI_COMMIT_TAG}"
3938
echo "Release tag: $TAG"
@@ -51,11 +50,10 @@ steps:
5150
image: alpine:latest
5251
depends_on: [validate-tag]
5352
commands:
54-
- apk add --no-cache bash
5553
- |
5654
TAG="${CI_COMMIT_TAG}"
5755
VERSION_FROM_FILE=$(cat VERSION)
58-
VERSION_FROM_TAG="${TAG#v}"
56+
VERSION_FROM_TAG="$(echo "$TAG" | sed 's/^v//')"
5957
6058
echo "Tag version: $VERSION_FROM_TAG"
6159
echo "VERSION file: $VERSION_FROM_FILE"

0 commit comments

Comments
 (0)