Linux Compressor Humanizer https://lch.hatthieves.es
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.
 

38 lines
875 B

kind: pipeline
type: docker
name: default
steps:
- name: Build Ubuntu deb package
image: ubuntu
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 ../*.deb .
- dpkg -i *.deb
- rm -rf /debian/* && cp *.deb /debian
- lch -v
- name: Build CentOS rpm package
image: centos
volumes:
- name: rpm_packages
path: /root/rpmbuild/RPMS/noarch/
commands:
- yum -qy install rpm-build
- rm -rf /root/rpmbuild/RPMS/noarch/*
- rpmbuild --target noarch -bb lch.spec
- rpm -i /root/rpmbuild/RPMS/noarch/*.rpm
- lch -v
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