Make CI build packages for Ubuntu 18.04 and 18.10

This commit is contained in:
Micah Lee 2020-04-09 14:27:43 -07:00
parent 8b813729e5
commit 4ec123f1c5
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -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: