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.
 

49 lines
1.1 KiB

kind: pipeline
type: docker
name: default
steps:
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host: https://sonar.hatthieves.es
sonar_token:
from_secret: sonar_token
sources: .
commands:
- echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories
- echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
- apk update
- apk add libffi shellcheck
- /bin/sh -c /bin/drone-sonar
- name: Build Ubuntu deb package
image: ubuntu
volumes:
- name: deb_packages
path: /debian
commands:
- ./build-deb.sh
- dpkg -i *.deb
- cp *.deb /debian && rm *.deb
- 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