Compare commits
2 commits
31eeff367c
...
d0676443d7
Author | SHA1 | Date | |
---|---|---|---|
|
d0676443d7 | ||
|
68729f301f |
2 changed files with 14 additions and 15 deletions
|
@ -44,6 +44,7 @@ pipeline:
|
|||
api_key:
|
||||
from_secret: gitea_token
|
||||
base_url: https://gitea.zionetrix.net
|
||||
note: dist/release_notes.md
|
||||
files:
|
||||
- dist/*
|
||||
- deb_dist/*.deb
|
||||
|
@ -53,20 +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 deb_dist/python3-mylib_*_all.deb ) $APT_API_URL/files/python3-mylib
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls deb_dist/mylib_*.dsc ) $APT_API_URL/files/python3-mylib
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls deb_dist/mylib_*.orig.tar.gz ) $APT_API_URL/files/python3-mylib
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls deb_dist/mylib_*.debian.tar.xz ) $APT_API_URL/files/python3-mylib
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls deb_dist/mylib_*.buildinfo ) $APT_API_URL/files/python3-mylib
|
||||
- curl -u $APT_CREDS -X POST -F file=@$( ls deb_dist/mylib_*.changes ) $APT_API_URL/files/python3-mylib
|
||||
- curl -u $APT_CREDS -X POST $APT_API_URL/repos/$APT_REPO_NAME/include/python3-mylib
|
||||
- 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: mylib
|
||||
|
|
1
build.sh
1
build.sh
|
@ -90,6 +90,7 @@ $GITDCH \
|
|||
--version "${VERSION}" \
|
||||
--code-name $DEBIAN_CODENAME \
|
||||
--output debian/changelog \
|
||||
--release-notes dist/release_notes.md \
|
||||
--path ../../ \
|
||||
"${GITDCH_ARGS[@]}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue