This commit is contained in:
16
.drone.yml
16
.drone.yml
@@ -55,14 +55,14 @@ steps:
|
|||||||
- name: shared
|
- name: shared
|
||||||
path: /shared
|
path: /shared
|
||||||
commands:
|
commands:
|
||||||
- cp /shared/vctp-linux-amd64 ./build/vctp-linux-amd64
|
- cp /shared/vctp-linux-amd64 ./build/vctp-linux-amd64
|
||||||
#- find .
|
#- find .
|
||||||
- VERSION=$(grep '^version:' vctp.yml | awk '{print $2}' | tr -d '"')
|
- VERSION=$(grep '^version:' vctp.yml | awk '{print $2}' | tr -d '"')
|
||||||
- VERSION=${VERSION#v}
|
- VERSION=${VERSION#v}
|
||||||
- export NFPM_VERSION=$VERSION
|
- export NFPM_VERSION=$VERSION
|
||||||
- echo "nfpm version: ${NFPM_VERSION}"
|
- echo "nfpm version: ${NFPM_VERSION}"
|
||||||
- nfpm package --config vctp.yml --packager rpm --target ./build/
|
- nfpm package --config vctp.yml --packager rpm --target ./build/
|
||||||
- ls -lah ./build/
|
- ls -lah ./build/
|
||||||
|
|
||||||
- name: semver
|
- name: semver
|
||||||
image: plugins/semver
|
image: plugins/semver
|
||||||
|
|||||||
Reference in New Issue
Block a user