CI: Improve output of publish-apt step
This commit is contained in:
parent
2ed8f8132e
commit
ffb0955fdb
1 changed files with 15 additions and 8 deletions
|
@ -55,15 +55,22 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
commands:
|
commands:
|
||||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/check-slapdd-crc32_*_all.deb ) $APT_API_URL/files/check-slapdd-crc32
|
- echo "Upload files..."
|
||||||
- curl -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_*_all.deb ) $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 --silent -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_*.dsc ) $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 -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 -F file=@$( ls dist/check-slapdd-crc32_*.dsc ) $APT_API_URL/files/check-slapdd-crc32
|
||||||
- curl -u $APT_CREDS -X POST $APT_API_URL/repos/$APT_REPO_NAME/include/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
|
- 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 ]
|
secrets: [ apt_api_url, apt_creds, apt_repo_name ]
|
||||||
|
|
Loading…
Reference in a new issue