fix ci-cd
Some checks failed
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2026-01-16 16:08:26 +11:00
parent 7c76825813
commit f171c7f0eb

View File

@@ -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