mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Make CI build packages for Ubuntu 18.04 and 18.10
This commit is contained in:
parent
8b813729e5
commit
4ec123f1c5
1 changed files with 60 additions and 0 deletions
|
@ -2,6 +2,54 @@ version: 2.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
build-ubuntu-bionic:
|
||||||
|
docker:
|
||||||
|
- image: ubuntu:18.04
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Install dependencies
|
||||||
|
command: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y git ssh ruby-dev rubygems python-all dh-python python3-stdeb docker.io python3 python3-pyqt5 python3-appdirs python3-click python3-xdg
|
||||||
|
gem install --no-ri --no-rdoc rake
|
||||||
|
gem install --no-ri --no-rdoc package_cloud
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Create the .deb package
|
||||||
|
command: |
|
||||||
|
./install/linux/build_deb.py
|
||||||
|
dpkg -i deb_dist/dangerzone_*-1_all.deb
|
||||||
|
- run:
|
||||||
|
name: Deploy to packagecloud.io
|
||||||
|
command: |
|
||||||
|
VERSION=$(cat dangerzone/__init__.py |grep "dangerzone_version = " |cut -d '"' -f2)
|
||||||
|
package_cloud push firstlookmedia/code/ubuntu/bionic deb_dist/dangerzone_${VERSION}-1_all.deb
|
||||||
|
package_cloud push firstlookmedia/code/ubuntu/bionic deb_dist/dangerzone_${VERSION}-1.dsc
|
||||||
|
|
||||||
|
build-ubuntu-cosmic:
|
||||||
|
docker:
|
||||||
|
- image: ubuntu:18.10
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Install dependencies
|
||||||
|
command: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y git ssh ruby-dev rubygems python-all dh-python python3-stdeb docker.io python3 python3-pyqt5 python3-appdirs python3-click python3-xdg
|
||||||
|
gem install --no-ri --no-rdoc rake
|
||||||
|
gem install --no-ri --no-rdoc package_cloud
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Create the .deb package
|
||||||
|
command: |
|
||||||
|
./install/linux/build_deb.py
|
||||||
|
dpkg -i deb_dist/dangerzone_*-1_all.deb
|
||||||
|
- run:
|
||||||
|
name: Deploy to packagecloud.io
|
||||||
|
command: |
|
||||||
|
VERSION=$(cat dangerzone/__init__.py |grep "dangerzone_version = " |cut -d '"' -f2)
|
||||||
|
package_cloud push firstlookmedia/code/ubuntu/cosmic deb_dist/dangerzone_${VERSION}-1_all.deb
|
||||||
|
package_cloud push firstlookmedia/code/ubuntu/cosmic deb_dist/dangerzone_${VERSION}-1.dsc
|
||||||
|
|
||||||
build-ubuntu-disco:
|
build-ubuntu-disco:
|
||||||
docker:
|
docker:
|
||||||
- image: ubuntu:19.04
|
- image: ubuntu:19.04
|
||||||
|
@ -146,6 +194,18 @@ workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build-tags:
|
build-tags:
|
||||||
jobs:
|
jobs:
|
||||||
|
- build-ubuntu-bionic:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /^v.*/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
- build-ubuntu-cosmic:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /^v.*/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
- build-ubuntu-disco:
|
- build-ubuntu-disco:
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in a new issue