From 9bd773669aeaea1dcd1a83d1dae928ed3271bc05 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 1 Aug 2022 23:59:41 +0200 Subject: [PATCH] CI: use brenard/aptly-publish image for publish-apt job --- .woodpecker.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index f0de34f..52662a4 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -42,20 +42,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/python3-cx-oracle_*_amd64.deb ) $APT_API_URL/files/python3-cx-oracle - - curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle-dbgsym_*_amd64.deb ) $APT_API_URL/files/python3-cx-oracle - - curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle_*.dsc ) $APT_API_URL/files/python3-cx-oracle - - curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle_*.tar.gz ) $APT_API_URL/files/python3-cx-oracle - - curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle_*.buildinfo ) $APT_API_URL/files/python3-cx-oracle - - curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle_*.changes ) $APT_API_URL/files/python3-cx-oracle - - curl -u $APT_CREDS -X POST $APT_API_URL/repos/$APT_REPO_NAME/include/python3-cx-oracle - - 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: python3-cx-oracle