Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy deb packages to bintray #194

Merged
merged 1 commit into from Sep 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 17 additions & 1 deletion .travis.yml
Expand Up @@ -4,7 +4,8 @@ services: docker

env:
global:
secure: "WBJI+q1QXLSPhJwHEwgY1dec7dpm7Wdw1vinQa1G6uaoq08yt/+SXRw4ID0QkGzZhcvrNI4/nYzb2b6JS9o5KzE+Yu/8Wp7Gw5LWSRwwj5k1yKt7f2wkvxHkNwUEmwQ2VFIf9WFmtcQsaMomre3hIYuS67i7900ICKm1vNJh4lc="
- secure: WBJI+q1QXLSPhJwHEwgY1dec7dpm7Wdw1vinQa1G6uaoq08yt/+SXRw4ID0QkGzZhcvrNI4/nYzb2b6JS9o5KzE+Yu/8Wp7Gw5LWSRwwj5k1yKt7f2wkvxHkNwUEmwQ2VFIf9WFmtcQsaMomre3hIYuS67i7900ICKm1vNJh4lc=
- BINTRAY_USER=bozaro

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand Down Expand Up @@ -57,6 +58,12 @@ jobs:
- stage: deploy
jdk: oraclejdk8 # Deploy releases using oldest supported jdk
script: ./gradlew assembleDist
before_deploy:
# Set the packages name and details in the descriptor file
- sed -i "s/__SUBJECT__/$BINTRAY_USER/g" bintray-descriptor.json
- sed -i "s/__BINTRAY_REPO__/git-as-svn/g" bintray-descriptor.json
- sed -i "s/__REPO_SLUG__/${TRAVIS_REPO_SLUG//\//\\/}/g" bintray-descriptor.json
- sed -i "s/__VERSION__/$TRAVIS_TAG/g" bintray-descriptor.json
deploy:
- provider: releases
api-key:
Expand All @@ -82,3 +89,12 @@ jobs:
on:
tags: true
repo: bozaro/git-as-svn
- provider: bintray
file: bintray-descriptor.json
user: $BINTRAY_USER
key:
secure: edL8Fb4WreerduO8bQj4RUwSFp9+UmXnolWm6PdsoMWMm8WNRwlU6gXBf39eZJjMMXkoftwkowcHiwar5YJHyZeIjlhLfvq2SmfmN/jVUCLppd+WrvSpUbm6A+7VShT9doIIcATvmHCC6Rk5kgchwWvPQQunYNy/Q9eRsz4STBk=
skip_cleanup: true
on:
tags: true
repo: bozaro/git-as-svn
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -137,8 +137,7 @@ There is also integration with Gitea >=v1.6. (Requires Sudo API) Remember to run
You can install Git as Subversion by commands:
```bash
# Add package source
echo "deb https://dist.bozaro.ru/ debian/" | sudo tee /etc/apt/sources.list.d/dist.bozaro.ru.list
curl -s https://dist.bozaro.ru/signature.gpg | sudo apt-key add -
echo "deb https://dl.bintray.com/bozaro/git-as-svn debian main" | sudo tee /etc/apt/sources.list.d/git-as-svn.list
# Install package
sudo apt-get update
sudo apt-get install git-as-svn
Expand Down
35 changes: 35 additions & 0 deletions bintray-descriptor.json
@@ -0,0 +1,35 @@
{
"package": {
"name": "git-as-svn",
"repo": "git-as-svn",
"licenses": ["GPL-2.0"],
"desc": "Subversion frontend for Git repositories",
"github_repo": "__REPO_SLUG__",
"website_url": "https://github.com/__REPO_SLUG__",
"issue_tracker_url": "https://github.com/__REPO_SLUG__/issues",
"vcs_url": "https://github.com/__REPO_SLUG__.git",
"github_use_tag_release_notes": true,
"github_release_notes_file": "CHANGELOG.md",
"subject": "__SUBJECT__"
},

"version": {
"name": "__VERSION__",
"desc": "git-as-svn __VERSION__ by __SUBJECT__",
"gpgSign": true
},

"files": [
{
"includePattern": "build/distributions/(.[^/]*(\\.deb)$)",
"uploadPattern": "$1",
"matrixParams": {
"deb_distribution": "debian",
"deb_component": "main",
"deb_architecture": "all"
}
}
],

"publish": true
}