Compare commits
2 commits
d246980abc
...
ffb0955fdb
Author | SHA1 | Date | |
---|---|---|---|
|
ffb0955fdb | ||
|
2ed8f8132e |
3 changed files with 17 additions and 10 deletions
|
@ -55,15 +55,22 @@ pipeline:
|
|||
when:
|
||||
event: tag
|
||||
commands:
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/check-slapdd-crc32_*_all.deb ) $APT_API_URL/files/check-slapdd-crc32
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/check-slapdd-crc32_*.buildinfo ) $APT_API_URL/files/check-slapdd-crc32
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/check-slapdd-crc32_*.changes ) $APT_API_URL/files/check-slapdd-crc32
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/check-slapdd-crc32_*.dsc ) $APT_API_URL/files/check-slapdd-crc32
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/check-slapdd-crc32_*.tar.gz ) $APT_API_URL/files/check-slapdd-crc32
|
||||
- curl -u $APT_CREDS -X POST $APT_API_URL/repos/$APT_REPO_NAME/include/check-slapdd-crc32
|
||||
- echo "Upload files..."
|
||||
- curl --silent -u $APT_CREDS -X POST -F file=@$( ls dist/check-slapdd-crc32_*_all.deb ) $APT_API_URL/files/check-slapdd-crc32
|
||||
- curl --silent -u $APT_CREDS -X POST -F file=@$( ls dist/check-slapdd-crc32_*.buildinfo ) $APT_API_URL/files/check-slapdd-crc32
|
||||
- curl --silent -u $APT_CREDS -X POST -F file=@$( ls dist/check-slapdd-crc32_*.changes ) $APT_API_URL/files/check-slapdd-crc32
|
||||
- curl --silent -u $APT_CREDS -X POST -F file=@$( ls dist/check-slapdd-crc32_*.dsc ) $APT_API_URL/files/check-slapdd-crc32
|
||||
- curl --silent -u $APT_CREDS -X POST -F file=@$( ls dist/check-slapdd-crc32_*.tar.gz ) $APT_API_URL/files/check-slapdd-crc32
|
||||
- curl --silent -u $APT_CREDS -X POST $APT_API_URL/repos/$APT_REPO_NAME/include/check-slapdd-crc32
|
||||
- APT_SNAP_NAME=$(date +%s)_$APT_REPO_NAME
|
||||
- echo "Create snapshot of repository $APT_REPO_NAME ($APT_SNAP_NAME)..."
|
||||
- >
|
||||
curl -u $APT_CREDS -X POST -H 'Content-Type: application/json' --data "{\"Name\":\"$APT_SNAP_NAME\"}" $APT_API_URL/repos/$APT_REPO_NAME/snapshots
|
||||
curl --silent -u $APT_CREDS -X POST -H 'Content-Type: application/json' --data "{\"Name\":\"$APT_SNAP_NAME\"}" $APT_API_URL/repos/$APT_REPO_NAME/snapshots
|
||||
- echo "Update published snapshot for repository $APT_REPO_NAME (use $APT_SNAP_NAME)..."
|
||||
- >
|
||||
curl -u $APT_CREDS -X PUT -H 'Content-Type: application/json' --data "{\"Snapshots\": [{\"Component\": \"main\", \"Name\": \"$APT_SNAP_NAME\"}]}" $APT_API_URL/publish/:./$APT_REPO_NAME
|
||||
curl --silent -u $APT_CREDS -X PUT -H 'Content-Type: application/json' --data "{\"Snapshots\": [{\"Component\": \"main\", \"Name\": \"$APT_SNAP_NAME\"}]}" $APT_API_URL/publish/:./$APT_REPO_NAME
|
||||
- echo "Check uploaded packages..."
|
||||
- >
|
||||
curl --silent -u $APT_CREDS '$APT_API_URL/repos/stable/packages?q=check-slapdd-crc32'|jq
|
||||
- echo "Done"
|
||||
secrets: [ apt_api_url, apt_creds, apt_repo_name ]
|
||||
|
|
2
debian/dirs
vendored
2
debian/dirs
vendored
|
@ -1 +1 @@
|
|||
usr/lib/nagios/plugins
|
||||
usr/bin
|
||||
|
|
2
debian/install
vendored
2
debian/install
vendored
|
@ -1 +1 @@
|
|||
check_slapdd_crc32 usr/lib/nagios/plugins
|
||||
check_slapdd_crc32 usr/bin
|
||||
|
|
Loading…
Reference in a new issue