Compare commits
2 commits
e28e5c2740
...
8a6599aaf2
Author | SHA1 | Date | |
---|---|---|---|
|
8a6599aaf2 | ||
|
9bd773669a |
1 changed files with 14 additions and 15 deletions
|
@ -14,6 +14,7 @@ pipeline:
|
||||||
- dpkg-buildpackage
|
- dpkg-buildpackage
|
||||||
- cd ../../
|
- cd ../../
|
||||||
- rm -fr dist/python3-cx-oracle_*_amd64
|
- rm -fr dist/python3-cx-oracle_*_amd64
|
||||||
|
- curl --silent https://api.github.com/repos/oracle/python-cx_Oracle/releases |jq --raw-output ".[] | select(.tag_name == \"$CI_COMMIT_TAG\") | .body" > dist/release_notes.md
|
||||||
secrets: [ gpg_key, gpg_name, gpg_email, deb_dist ]
|
secrets: [ gpg_key, gpg_name, gpg_email, deb_dist ]
|
||||||
|
|
||||||
publish-dryrun:
|
publish-dryrun:
|
||||||
|
@ -33,6 +34,7 @@ pipeline:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
base_url: https://gitea.zionetrix.net
|
base_url: https://gitea.zionetrix.net
|
||||||
|
note: dist/release_notes.md
|
||||||
files:
|
files:
|
||||||
- dist/*.deb
|
- dist/*.deb
|
||||||
- dist/*.whl
|
- dist/*.whl
|
||||||
|
@ -42,20 +44,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 dist/python3-cx-oracle_*_amd64.deb ) $APT_API_URL/files/python3-cx-oracle
|
api_url:
|
||||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle-dbgsym_*_amd64.deb ) $APT_API_URL/files/python3-cx-oracle
|
from_secret: apt_api_url
|
||||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle_*.dsc ) $APT_API_URL/files/python3-cx-oracle
|
api_username:
|
||||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle_*.tar.gz ) $APT_API_URL/files/python3-cx-oracle
|
from_secret: apt_api_username
|
||||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle_*.buildinfo ) $APT_API_URL/files/python3-cx-oracle
|
api_password:
|
||||||
- curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle_*.changes ) $APT_API_URL/files/python3-cx-oracle
|
from_secret: apt_api_password
|
||||||
- curl -u $APT_CREDS -X POST $APT_API_URL/repos/$APT_REPO_NAME/include/python3-cx-oracle
|
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: python3-cx-oracle
|
||||||
- >
|
|
||||||
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 ]
|
|
||||||
|
|
Loading…
Reference in a new issue