This commit is contained in:
@@ -55,8 +55,8 @@ steps:
|
|||||||
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 .
|
- ls -lah .
|
||||||
- nfpm package --config vctp-service.yml --packager rpm --target ./build/
|
- nfpm package --config vctp.yml --packager rpm --target ./build/
|
||||||
- ls -lah ./build/
|
- ls -lah ./build/
|
||||||
|
|
||||||
- name: dell-sftp-deploy
|
- name: dell-sftp-deploy
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ package=./
|
|||||||
commit=$(git rev-parse HEAD)
|
commit=$(git rev-parse HEAD)
|
||||||
buildtime=$(date +%Y-%m-%dT%T%z)
|
buildtime=$(date +%Y-%m-%dT%T%z)
|
||||||
#Extract the version from yml
|
#Extract the version from yml
|
||||||
package_version=$(grep 'version:' "$package_name-service.yml" | awk '{print $2}' | tr -d '"' | sed 's/^v//')
|
package_version=$(grep 'version:' "$package_name.yml" | awk '{print $2}' | tr -d '"' | sed 's/^v//')
|
||||||
|
|
||||||
host_os=$(uname -s | tr '[:upper:]' '[:lower:]')
|
host_os=$(uname -s | tr '[:upper:]' '[:lower:]')
|
||||||
host_arch=$(uname -m)
|
host_arch=$(uname -m)
|
||||||
|
|||||||
Reference in New Issue
Block a user