CI: Add screts key
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed

This commit is contained in:
Benjamin Renard 2022-04-30 12:17:41 +02:00
parent ccfff0bc31
commit e59ba8a96e

View file

@ -19,6 +19,7 @@ pipeline:
- dpkg-buildpackage - dpkg-buildpackage
- cd ../../ - cd ../../
- rm -fr dist/python3-cx-oracle_*_amd64 - rm -fr dist/python3-cx-oracle_*_amd64
secrets: [ gpg_key, gpg_name, gpg_email, deb_dist ]
publish-dryrun: publish-dryrun:
group: publish group: publish
@ -62,3 +63,4 @@ pipeline:
APT_SNAP_NAME=$(date +%s)_$APT_REPO_NAME 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 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 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 ]