Skip to content

Commit

Permalink
fix nfpm (woodpecker-ci#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Feb 24, 2022
1 parent 28e96a3 commit f97f6f2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ TARGETOS ?= linux
TARGETARCH ?= amd64

VERSION ?= next
VERSION_NUMBER ?= 0.0.0
ifneq ($(CI_COMMIT_TAG),)
VERSION := $(CI_COMMIT_TAG:v%=%)
VERSION_NUMBER := ${VERSION}
endif

# append commit-sha to next version
Expand Down
2 changes: 1 addition & 1 deletion nfpm/nfpm-agent.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: woodpecker-agent
arch: amd64
platform: linux
version: v${WOODPECKER_VERSION}
version: ${VERSION_NUMBER}
description: Woodpecker Agent
homepage: https://github.com/woodpecker-ci/woodpecker
license: Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion nfpm/nfpm-cli.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: woodpecker-cli
arch: amd64
platform: linux
version: v${WOODPECKER_VERSION}
version: ${VERSION_NUMBER}
description: Woodpecker CLI
homepage: https://github.com/woodpecker-ci/woodpecker
license: Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion nfpm/nfpm-server.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: woodpecker-server
arch: amd64
platform: linux
version: v${WOODPECKER_VERSION}
version: ${VERSION_NUMBER}
description: Woodpecker Server
homepage: https://github.com/woodpecker-ci/woodpecker
license: Apache 2.0
Expand Down

0 comments on commit f97f6f2

Please sign in to comment.