xwim/.drone.yml

56 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2020-02-16 02:20:12 +00:00
kind: pipeline
type: docker
name: default
steps:
- name: build
image: arminfriedl/xwim-build
commands:
- meson build
- ninja -C build
trigger:
event:
exclude:
- tag
2020-02-22 19:33:54 +00:00
---
kind: pipeline
type: docker
name: release
steps:
2020-02-23 19:56:29 +00:00
- name: build
2020-02-22 19:33:54 +00:00
image: arminfriedl/xwim-build
commands:
2020-02-23 19:56:29 +00:00
- meson --buildtype=release build
2020-02-22 19:33:54 +00:00
- ninja -C build
2020-02-23 19:56:29 +00:00
- mkdir xwim-${DRONE_TAG}-x86_64-glibc-linux
- mv build/src/xwim xwim-${DRONE_TAG}-x86_64-glibc-linux
2020-02-22 19:33:54 +00:00
- name: package
image: arminfriedl/xwim-build
commands:
2020-02-23 19:56:29 +00:00
- tar cjf xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.bz2 xwim-${DRONE_TAG}-x86_64-glibc-linux/xwim
- tar czf xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.gz xwim-${DRONE_TAG}-x86_64-glibc-linux/xwim
- zip -r xwim-${DRONE_TAG}-x86_64-glibc-linux.zip xwim-${DRONE_TAG}-x86_64-glibc-linux
2020-02-22 19:33:54 +00:00
- name: publish
image: plugins/gitea-release
settings:
base_url: https://git.friedl.net
api_key:
from_secret: gitea_token
files:
2020-02-23 19:56:29 +00:00
- xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.bz2
- xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.gz
- xwim-${DRONE_TAG}-x86_64-glibc-linux.zip
2020-02-22 19:33:54 +00:00
title: xwim ${DRONE_TAG}
checksum:
- md5
- sha256
trigger:
event:
- tag