From 57c31c5c37f6b422da85dbc1724dda2fbda15719 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 28 Mar 2021 19:06:37 +0200 Subject: [PATCH] ci: s/archlinux/centos/ && add pull pipeline --- .drone.yml | 52 +++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 43 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index f148cf4d..739fce5a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,12 +1,43 @@ --- kind: pipeline type: docker -name: build-single-step +name: pull platform: os: linux arch: amd64 +trigger: + branch: [development] + event: [push] + +steps: +- name: pull-centos8 + pull: always + image: centos:centos8.1.1911 + depends_on: [clone] + commands: + - uname -r + +- name: pull-alpine + pull: always + image: alpine + depends_on: [clone] + commands: + - uname -r + +--- +kind: pipeline +type: docker +name: build-single-step + +platform: + os: linux + arch: amd64 + +depends_on: +- pull + trigger: branch: [development] event: [push] @@ -14,9 +45,9 @@ trigger: steps: - name: build pull: always - image: immawanderer/archlinux:latest + image: centos:centos8.1.1911 commands: - - pacman -Sy --needed --noconfirm perl wget + - dnf install -y perl wget - perl src/fastnetmon_build.pl --install_dependency_packages_only - perl src/fastnetmon_build.pl --build_gcc_only - perl src/fastnetmon_build.pl --build_dependencies_only @@ -32,6 +63,9 @@ platform: os: linux arch: amd64 +depends_on: +- pull + trigger: branch: [development] event: [push] @@ -39,23 +73,23 @@ trigger: steps: - name: install_required_packaged pull: always - image: immawanderer/archlinux:latest + image: centos:centos8.1.1911 commands: - - pacman -Sy --needed --noconfirm perl wget + - dnf install -y perl wget - perl src/fastnetmon_build.pl --install_dependency_packages_only - name: install_gcc pull: always - image: immawanderer/archlinux:latest + image: centos:centos8.1.1911 commands: - - pacman -Sy --needed --noconfirm perl wget + - dnf install -y perl wget - perl src/fastnetmon_build.pl --build_gcc_only - name: install_dependencies pull: always - image: immawanderer/archlinux:latest + image: centos:centos8.1.1911 commands: - - pacman -Sy --needed --noconfirm perl wget + - dnf install -y perl wget - perl src/fastnetmon_build.pl --build_dependencies_only - perl src/fastnetmon_build.pl --use-git-master --build_fastnetmon_only - perl src/scripts/build_libary_bundle.pl /opt/fastnetmon_libraries_bundle.tar.gz