CI: use brenard/aptly-publish image for publish-apt job
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/tag/woodpecker Pipeline failed

This commit is contained in:
Benjamin Renard 2022-08-02 01:33:52 +02:00
parent 68729f301f
commit d0676443d7

View file

@ -54,20 +54,17 @@ pipeline:
publish-apt: publish-apt:
group: publish group: publish
image: brenard/curl image: brenard/aptly-publish
when: when:
event: tag event: tag
commands: settings:
- curl -u $APT_CREDS -X POST -F file=@$( ls deb_dist/python3-mylib_*_all.deb ) $APT_API_URL/files/python3-mylib api_url:
- curl -u $APT_CREDS -X POST -F file=@$( ls deb_dist/mylib_*.dsc ) $APT_API_URL/files/python3-mylib from_secret: apt_api_url
- curl -u $APT_CREDS -X POST -F file=@$( ls deb_dist/mylib_*.orig.tar.gz ) $APT_API_URL/files/python3-mylib api_username:
- curl -u $APT_CREDS -X POST -F file=@$( ls deb_dist/mylib_*.debian.tar.xz ) $APT_API_URL/files/python3-mylib from_secret: apt_api_username
- curl -u $APT_CREDS -X POST -F file=@$( ls deb_dist/mylib_*.buildinfo ) $APT_API_URL/files/python3-mylib api_password:
- curl -u $APT_CREDS -X POST -F file=@$( ls deb_dist/mylib_*.changes ) $APT_API_URL/files/python3-mylib from_secret: apt_api_password
- curl -u $APT_CREDS -X POST $APT_API_URL/repos/$APT_REPO_NAME/include/python3-mylib repo_name:
- APT_SNAP_NAME=$(date +%s)_$APT_REPO_NAME from_secret: apt_repo_name
- > path: dist
curl -u $APT_CREDS -X POST -H 'Content-Type: application/json' --data "{\"Name\":\"$APT_SNAP_NAME\"}" $APT_API_URL/repos/$APT_REPO_NAME/snapshots source_name: mylib
- >
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 ]