You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

35 lines
819 B

kind: pipeline
type: docker
name: default
steps:
- name: Build Ubuntu 20:04 deb package
image: ubuntu:20.04
volumes:
- name: deb_packages
path: /debian
commands:
- export DEBIAN_FRONTEND=noninteractive
- apt-get update && apt-get install -y dpkg-dev debhelper
- dpkg-buildpackage -us -uc
- cp ../lch_0.6.10_all.deb .
- dpkg -i lch_0.6.10_all.deb
- lch -v
- cp lch_0.6.10_all.deb /debian
- name: Build CentOS 7 rpm package
image: centos:7
volumes:
- name: rpm_packages
path: /root/rpmbuild/RPMS/noarch/
commands:
- rpmbuild --target noarch -bb lch.spec
- rpm -i /root/rpmbuild/RPMS/noarch/*
volumes:
- name: deb_packages
host:
path: /opt/docker/production/lch-web/web/deb
- name: rpm_packages
host:
path: /opt/docker/production/lch-web/web/rpm