2022-08-14 19:34:32 +02:00
|
|
|
---
|
2022-07-28 19:37:28 +02:00
|
|
|
kind: pipeline
|
2022-08-14 19:34:32 +02:00
|
|
|
type: docker
|
2022-07-28 19:37:28 +02:00
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2022-08-14 19:34:32 +02:00
|
|
|
- name: Build
|
2022-10-16 12:08:55 +02:00
|
|
|
image: git.aksdb.de/aksdb/centred:builder-221016
|
2022-07-28 19:37:28 +02:00
|
|
|
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
|
2022-08-14 19:34:32 +02:00
|
|
|
|
|
|
|
- name: Package
|
2022-10-16 12:08:55 +02:00
|
|
|
image: git.aksdb.de/aksdb/centred:builder-221016
|
2022-08-14 19:34:32 +02:00
|
|
|
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
|