CentrED/.drone.yml

69 lines
2.4 KiB
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: Build
image: git.aksdb.de/aksdb/centred:builder-221016
commands:
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.win32" -B Client/CentrED.lpr
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.Linux.x64" -B Client/CentrED.lpr
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.win32" -B Server/cedserver.lpi
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.Linux.x64" -B Server/cedserver.lpi
- name: Package
image: git.aksdb.de/aksdb/centred:builder-221016
commands:
- mkdir -p dist/client.win32 dist/client.linux.x64 dist/server.win32 dist/server.linux.x64
- cp Client.bin/nodraw.txt Client.bin/ColorLight.xml dist/client.linux.x64/
- cp Client.bin/nodraw.txt Client.bin/ColorLight.xml dist/client.win32/
- cp Client.bin/CentrED.x64 dist/client.linux.x64/CentrED
- cp Client.bin/CentrED.exe dist/client.win32/CentrED.exe
- cp Server.bin/cedserver.x64 dist/server.linux.x64/cedserver
- cp Server.bin/cedserver.exe dist/server.win32/cedserver.exe
- cd dist/client.win32 && zip ../CentrED.win32.zip *
- cd ../client.linux.x64 && tar czf ../CentrED.linux.x64.tgz *
- cd ../server.win32 && zip ../Server.win32.zip *
- cd ../server.linux.x64 && tar czf ../Server.linux.x64.tgz *
- name: Upload Client (win32)
image: vividboarder/drone-webdav
settings:
file: dist/CentrED.win32.zip
destination: https://aksdb.de/snapshots/CentrED/
username: centred
password:
from_secret: snapshots_password
- name: Upload Client (linux x64)
image: vividboarder/drone-webdav
settings:
file: dist/CentrED.linux.x64.tgz
destination: https://aksdb.de/snapshots/CentrED/
username: centred
password:
from_secret: snapshots_password
- name: Upload Server (win32)
image: vividboarder/drone-webdav
settings:
file: dist/Server.win32.zip
destination: https://aksdb.de/snapshots/CentrED/
username: centred
password:
from_secret: snapshots_password
- name: Upload Server (linux x64)
image: vividboarder/drone-webdav
settings:
file: dist/Server.linux.x64.tgz
destination: https://aksdb.de/snapshots/CentrED/
username: centred
password:
from_secret: snapshots_password
trigger:
branch:
- master