|
|
@ -28,7 +28,10 @@ release: |
|
|
|
stage: build |
|
|
|
script: |
|
|
|
- cargo build --release |
|
|
|
- strip target/release/rsddns |
|
|
|
- cd target/release |
|
|
|
- strip rsddns |
|
|
|
- md5sum rsddns > rsddns.md5 |
|
|
|
- sha1sum rsddns > rsddns.sha1 |
|
|
|
artifacts: |
|
|
|
expire_in: 7 days |
|
|
|
paths: |
|
|
@ -43,6 +46,8 @@ deploy:release: |
|
|
|
script: |
|
|
|
- cat Cargo.toml | grep "version =" | awk '{split($0,a,"="); gsub(/ |"/, "", a[2]); print a[2]}' > VERSION |
|
|
|
- curl -v -u "$DEPLOYMENT_CREDENTIALS" --upload-file "target/release/rsddns" "$NEXUS_RELEASE_URL/com/sothr/rsddns/$(head -1 ./VERSION)/rsddns" |
|
|
|
- curl -v -u "$DEPLOYMENT_CREDENTIALS" --upload-file "target/release/rsddns.md5" "$NEXUS_RELEASE_URL/com/sothr/rsddns/$(head -1 ./VERSION)/rsddns.md5" |
|
|
|
- curl -v -u "$DEPLOYMENT_CREDENTIALS" --upload-file "target/release/rsddns.sha1" "$NEXUS_RELEASE_URL/com/sothr/rsddns/$(head -1 ./VERSION)/rsddns.sha1" |
|
|
|
- curl -v -u "$DEPLOYMENT_CREDENTIALS" --upload-file "VERSION" "$NEXUS_RELEASE_URL/com/sothr/rsddns/latest" |
|
|
|
dependencies: |
|
|
|
- release |
|
|
|