switched from circleci to selfhosted droneci #1
32
.drone.yml
32
.drone.yml
@ -7,21 +7,6 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
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
|
- name: build-ubuntu
|
||||||
image: buildpack-deps:19.10
|
image: buildpack-deps:19.10
|
||||||
volumes:
|
volumes:
|
||||||
@ -36,9 +21,24 @@ steps:
|
|||||||
- cd build && pwd && ls; qmake ..; make -j2; cd ..
|
- cd build && pwd && ls; qmake ..; make -j2; cd ..
|
||||||
- mkdir /release || true
|
- mkdir /release || true
|
||||||
- cp build/src/kshare /release/
|
- cp build/src/kshare /release/
|
||||||
- cd packages/; ./makedeb.sh ci; cp *.deb /release/; cd..
|
- cd packages/; ./makedeb.sh ci; cp *.deb /release/; cd ..
|
||||||
- rm -rf build/
|
- 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
|
- name: artifacts
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
VERSION=$(grep setApplicationVersion ../src/main.cpp | head -n1 | cut -d \" -f2)
|
VERSION=$(grep setApplicationVersion ../src/main.cpp | head -n1 | cut -d \" -f2)
|
||||||
echo "Make Debian package for v$VERSION" >&2
|
echo "Make Debian package for v$VERSION" >&2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user