fix #774
This commit is contained in:
6543 2022-02-24 15:35:11 +01:00 committed by GitHub
parent 28e96a3851
commit f97f6f25b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View file

@ -5,8 +5,10 @@ TARGETOS ?= linux
TARGETARCH ?= amd64 TARGETARCH ?= amd64
VERSION ?= next VERSION ?= next
VERSION_NUMBER ?= 0.0.0
ifneq ($(CI_COMMIT_TAG),) ifneq ($(CI_COMMIT_TAG),)
VERSION := $(CI_COMMIT_TAG:v%=%) VERSION := $(CI_COMMIT_TAG:v%=%)
VERSION_NUMBER := ${VERSION}
endif endif
# append commit-sha to next version # append commit-sha to next version

View file

@ -1,7 +1,7 @@
name: woodpecker-agent name: woodpecker-agent
arch: amd64 arch: amd64
platform: linux platform: linux
version: v${WOODPECKER_VERSION} version: ${VERSION_NUMBER}
description: Woodpecker Agent description: Woodpecker Agent
homepage: https://github.com/woodpecker-ci/woodpecker homepage: https://github.com/woodpecker-ci/woodpecker
license: Apache 2.0 license: Apache 2.0

View file

@ -1,7 +1,7 @@
name: woodpecker-cli name: woodpecker-cli
arch: amd64 arch: amd64
platform: linux platform: linux
version: v${WOODPECKER_VERSION} version: ${VERSION_NUMBER}
description: Woodpecker CLI description: Woodpecker CLI
homepage: https://github.com/woodpecker-ci/woodpecker homepage: https://github.com/woodpecker-ci/woodpecker
license: Apache 2.0 license: Apache 2.0

View file

@ -1,7 +1,7 @@
name: woodpecker-server name: woodpecker-server
arch: amd64 arch: amd64
platform: linux platform: linux
version: v${WOODPECKER_VERSION} version: ${VERSION_NUMBER}
description: Woodpecker Server description: Woodpecker Server
homepage: https://github.com/woodpecker-ci/woodpecker homepage: https://github.com/woodpecker-ci/woodpecker
license: Apache 2.0 license: Apache 2.0