CI: use brenard/aptly-publish image for publish-apt job
This commit is contained in:
parent
f24ce7f266
commit
cdf35ecd5a
1 changed files with 12 additions and 14 deletions
|
@ -54,19 +54,17 @@ pipeline:
|
|||
|
||||
publish-apt:
|
||||
group: publish
|
||||
image: brenard/curl
|
||||
image: brenard/aptly-publish
|
||||
when:
|
||||
event: tag
|
||||
commands:
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/check-syncrepl-extended_*_all.deb ) $APT_API_URL/files/check-syncrepl-extended
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/check-syncrepl-extended_*.buildinfo ) $APT_API_URL/files/check-syncrepl-extended
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/check-syncrepl-extended_*.changes ) $APT_API_URL/files/check-syncrepl-extended
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/check-syncrepl-extended_*.dsc ) $APT_API_URL/files/check-syncrepl-extended
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/check-syncrepl-extended_*.tar.gz ) $APT_API_URL/files/check-syncrepl-extended
|
||||
- curl -u $APT_CREDS -X POST $APT_API_URL/repos/$APT_REPO_NAME/include/check-syncrepl-extended
|
||||
- APT_SNAP_NAME=$(date +%s)_$APT_REPO_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 -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
|
||||
secrets: [ apt_api_url, apt_creds, apt_repo_name ]
|
||||
settings:
|
||||
api_url:
|
||||
from_secret: apt_api_url
|
||||
api_username:
|
||||
from_secret: apt_api_username
|
||||
api_password:
|
||||
from_secret: apt_api_password
|
||||
repo_name:
|
||||
from_secret: apt_repo_name
|
||||
path: dist
|
||||
source_name: check-syncrepl-extended
|
||||
|
|
Loading…
Reference in a new issue