From c9b21e33a4900c318f4f6e5c431c7f045b0ca5fa Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Fri, 17 Jul 2020 21:33:53 +0200 Subject: [PATCH] add: use own container with preinstalled packages --- .drone.yml | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7d11e9f..ee32570 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,22 +9,40 @@ platform: arch: arm steps: -- name: makepkg - image: agners/archlinuxarm +- name: makepkg-core + image: serguzim/emgauwa-packager commands: - - pacman -Syu --noconfirm base-devel awk tar wiringpi - - sed -i 's/(( EUID == 0 ))/(( 1 == 0 ))/g' /usr/bin/makepkg - export CFLAGS="-marm -mfpu=vfp -march=armv6zk+fp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s" - export MAKEFLAGS="-j$(grep -c ^processor /proc/cpuinfo)" - cd core/ - makepkg -s -f --cleanbuild --noconfirm - - cd ../core-testing +- name: makepkg-core-testimg + image: serguzim/emgauwa-packager + commands: + - export CFLAGS="-marm -mfpu=vfp -march=armv6zk+fp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s" + - export MAKEFLAGS="-j$(grep -c ^processor /proc/cpuinfo)" + - cd core-testing/ - makepkg -s -f --cleanbuild --noconfirm - - cd ../controller +- name: makepkg-controller + image: serguzim/emgauwa-packager + commands: + - export CFLAGS="-marm -mfpu=vfp -march=armv6zk+fp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s" + - export MAKEFLAGS="-j$(grep -c ^processor /proc/cpuinfo)" + - cd controller/ - makepkg -s -f --cleanbuild --noconfirm - - cd ../controller-testing +- name: makepkg-controller-testing + image: serguzim/emgauwa-packager + commands: + - export CFLAGS="-marm -mfpu=vfp -march=armv6zk+fp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s" + - export MAKEFLAGS="-j$(grep -c ^processor /proc/cpuinfo)" + - cd controller-testing/ - makepkg -s -f --cleanbuild --noconfirm - - cd ../webapp +- name: makepkg-webapp + image: serguzim/emgauwa-packager + commands: + - export CFLAGS="-marm -mfpu=vfp -march=armv6zk+fp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s" + - export MAKEFLAGS="-j$(grep -c ^processor /proc/cpuinfo)" + - cd webapp/ - makepkg -s -f --cleanbuild --noconfirm - name: upload_package image: serguzim/drone-webdav