This commit is contained in:
19
.drone.yml
19
.drone.yml
@@ -50,34 +50,15 @@ steps:
|
|||||||
image: ghcr.io/goreleaser/nfpm
|
image: ghcr.io/goreleaser/nfpm
|
||||||
environment:
|
environment:
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
NFPM_VERSION: '${DRONE_BUILD_NUMBER}'
|
|
||||||
volumes:
|
volumes:
|
||||||
- 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=${VERSION#v}
|
|
||||||
- export NFPM_VERSION=$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
|
|
||||||
image: plugins/semver
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
settings:
|
|
||||||
repo: ${DRONE_REPO_LINK}
|
|
||||||
token:
|
|
||||||
from_secret: GITEA_TOKEN
|
|
||||||
patch: true
|
|
||||||
tag: true
|
|
||||||
user_name: "Nathan Coad"
|
|
||||||
user_email: "nathan@thecoads.com"
|
|
||||||
|
|
||||||
- name: dell-sftp-deploy
|
- name: dell-sftp-deploy
|
||||||
image: hypervtechnics/drone-sftp
|
image: hypervtechnics/drone-sftp
|
||||||
settings:
|
settings:
|
||||||
|
|||||||
Reference in New Issue
Block a user