Skip to content

Commit

Permalink
publish packages to bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
ngrewe committed Jul 26, 2020
1 parent eb77cf7 commit 6fe1bd6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
29 changes: 23 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ pr:
branches:
include:
- '*'
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- master
resources:
repositories:
- repository: tox
Expand Down Expand Up @@ -165,6 +159,29 @@ stages:
- script: |
python -m twine upload --skip-existing --verbose --repository azure-pypi --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/build.pythondist/*.*
displayName: Publish to PyPi
- job: bintray_publish
displayName: Publish Debian Packages to Bintray
variables:
- group: "Bintray Deployment (glaux.io org)"
steps:
- download: current
displayName: Download Distributions
- bash: |
set -eux
function publish {
distribution=$1
package=`ls -1 $(Pipeline.Workspace)/deb-${distribution}/*.deb | head -n1`
base_name=`basename ${package}`
version=`echo ${base_name} | sed 's/vault-ssh-renew_\(.*\)_all.*\.deb/\1/'`
curl -T ${package} -u$(bintray_username):$(bintray_api_key) \
-H "X-GPG-PASSPHRASE: $(bintray_gpg_passphrase)" \
"$(bintray_base_url)vault-ssh-renew/$version/$distribution-$base_name;deb_distribution=$distribution;deb_component=main;deb_architecture=all;publish=1"
}
for distribution in buster bionic focal; do
publish $distribution
done
displayName: "Upload to Bintray"
- job: github_publish
displayName: Publish Github Release
steps:
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
vault-ssh-renew (0.2.0a5-1) unstable; urgency=medium

* Install systemd service

-- Niels Grewe <thebeing@halbordnung.de> Sat, 26 Jul 2020 16:10:00 +0200

vault-ssh-renew (0.2.0a4-1) unstable; urgency=medium

* Initial release.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "vault-ssh-renew"
version = "0.2.0-alpha.4"
version = "0.2.0-alpha.5"
description = "Vault SSH Host Key Renewal Tool"
authors = ["Niels Grewe <niels.grewe@halbordnung.de>"]
license = "MIT"
Expand Down

0 comments on commit 6fe1bd6

Please sign in to comment.