drone-configs/fluffychat.yml
2021-08-15 03:41:13 +02:00

52 lines
1.1 KiB
YAML

---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: prepare
image: archlinux:base-devel
commands:
- pacman -Sy git java-environment glu unzip libglvnd python --noconfirm
- useradd builduser -m
- git clone https://aur.archlinux.org/flutter.git
- chown -R builduser:builduser flutter
- cd flutter && su builduser
- PKGEXT=".pkg.tar" makepkg
- name: build
image: archlinux:base-devel
commands:
- pacman -Sy clang cmake ninja git unzip gtk3 --noconfirm
- pacman -U flutter/flutter-*-x86_64.pkg.tar --noconfirm
- sh scripts/build-linux.sh
- name: bundle
image: archlinux:base-devel
commands:
- tar -a -v --zstd -cf fluffychat-linux-x86.tar.zst -C build/linux/x64/release/bundle/ .
when:
ref:
- refs/tags/v*
- name: release
image: plugins/gitea-release
settings:
base_url: https://git.entr0py.de
api_key:
from_secret: gitea_token
files:
- fluffychat-linux-x86.tar.zst
#note: CHANGELOG.md
checksum:
- md5
- sha256
when:
ref:
- refs/tags/v*
...