updated ci... such wow...
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Niklas 2020-06-01 20:45:01 +02:00
parent e1a9ae803d
commit 878c297f3f
2 changed files with 18 additions and 18 deletions

View File

@ -7,21 +7,6 @@ platform:
arch: amd64
steps:
- name: build-arch
image: archlinux/base:latest
volumes:
- name: cache
path: /release
commands:
- pacman -Sy && pacman -S --noconfirm base-devel git sudo wget
- "echo 'Set disable_coredump false' >> /etc/sudo.conf"
- "mkdir /home/build && useradd --home /home/build --shell=/bin/false build && usermod -L build && chown build:build /home/build && echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && echo 'root ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
- cd /home/build && sudo -u build wget https://raw.githubusercontent.com/Gurkengewuerz/KShare/${DRONE_COMMIT_BRANCH}/packages/arch/${DRONE_COMMIT_BRANCH}-KShare/PKGBUILD
- cd /home/build && pwd && ls -lah
- cd /home/build && sudo -u build makepkg --syncdeps --noconfirm
- mkdir /release || true
- cp /home/build/*.pkg.tar.xz /release/
- name: build-ubuntu
image: buildpack-deps:19.10
volumes:
@ -39,6 +24,21 @@ steps:
- cd packages/; ./makedeb.sh ci; cp *.deb /release/; cd ..
- rm -rf build/
- name: build-arch
image: archlinux/base:latest
volumes:
- name: cache
path: /release
commands:
- pacman -Sy && pacman -S --noconfirm base-devel git sudo wget
- "echo 'Set disable_coredump false' >> /etc/sudo.conf"
- "mkdir /home/build && useradd --home /home/build --shell=/bin/false build && usermod -L build && chown build:build /home/build && echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && echo 'root ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
- cd /home/build && sudo -u build wget https://raw.githubusercontent.com/Gurkengewuerz/KShare/dev/packages/arch/dev-KShare/PKGBUILD
- cd /home/build && pwd && ls -lah
- cd /home/build && sudo -u build makepkg --syncdeps --noconfirm
- mkdir /release || true
- cp /home/build/*.pkg.tar.xz /release/
- name: artifacts
image: alpine:latest
volumes:

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
VERSION=$(grep setApplicationVersion ../src/main.cpp | head -n1 | cut -d \" -f2)
echo "Make Debian package for v$VERSION" >&2