mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
try using nfpm:v2.11.3 docker image
This commit is contained in:
parent
afbb5c9c2f
commit
9f9224ce3f
1 changed files with 7 additions and 8 deletions
|
|
@ -518,20 +518,19 @@ upload to sonarcloud:
|
|||
|
||||
package for linux amd64:
|
||||
stage: build
|
||||
image: gitlab/dind
|
||||
services:
|
||||
- docker:dind
|
||||
extends: .go-cache
|
||||
image: nfpm:v2.11.3
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"'
|
||||
variables:
|
||||
GOOS: "linux"
|
||||
GOARCH: "amd64"
|
||||
script:
|
||||
- echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list
|
||||
- apt-get update -y && apt-get install -y -qq nfpm=2.11.3
|
||||
- apt-get update && apt-get install -y -qq musl-tools build-essential make
|
||||
- make package
|
||||
- export VERSION=$(git describe --tags 2>/dev/null || echo unknown)
|
||||
- nfpm package --packager deb --target "featurebase.${VERSION}.${GOARCH}.deb"
|
||||
- nfpm package --packager rpm --target "featurebase.${VERSION}.${GOARCH}.rpm"
|
||||
dependencies:
|
||||
- build featurebase # featurebase_linux_amd64 is all we want
|
||||
- build fbsql amd64 # ./build/fbsql_linux_amd64 is all we want
|
||||
artifacts:
|
||||
paths:
|
||||
- "*.deb"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue