2022-09-09 16:58:08 +03:00
|
|
|
#kind: pipeline
|
|
|
|
#type: exec
|
|
|
|
#name: Continuous Integration
|
|
|
|
#
|
|
|
|
#steps:
|
|
|
|
#
|
|
|
|
#trigger:
|
|
|
|
# event:
|
|
|
|
# - push
|
|
|
|
# - pull_request
|
|
|
|
#
|
|
|
|
#node:
|
|
|
|
# server: builder
|
|
|
|
#
|
|
|
|
#---
|
|
|
|
|
2022-08-27 15:18:03 +03:00
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
2022-09-09 16:58:08 +03:00
|
|
|
name: Release
|
2022-09-09 14:25:08 +03:00
|
|
|
|
2022-08-31 13:17:35 +03:00
|
|
|
steps:
|
2022-09-09 17:37:04 +03:00
|
|
|
- name: Prepare
|
|
|
|
commands:
|
|
|
|
- ln -s /var/lib/drone-runner-exec/.local $HOME/.local
|
2022-09-09 20:50:35 +03:00
|
|
|
- if podman volume exists src; then podman volume rm -f src; podman volume create src; else podman volume create src; fi
|
2022-09-09 19:04:22 +03:00
|
|
|
- git archive --format=tar HEAD | podman volume import src -
|
2022-09-09 17:37:04 +03:00
|
|
|
|
2022-09-09 18:33:44 +03:00
|
|
|
- name: Build Intermediate Linux Release Artifact (Binary)
|
2022-09-09 16:58:08 +03:00
|
|
|
commands:
|
2022-09-10 03:15:26 +03:00
|
|
|
- ./ci.py --build-linux
|
2022-09-09 18:33:44 +03:00
|
|
|
environment:
|
|
|
|
STANDALONE_KEYSTORE_PASS:
|
|
|
|
from_secret: STANDALONE_KEYSTORE_PASS
|
|
|
|
FDROID_KEYSTORE_PASS:
|
|
|
|
from_secret: FDROID_KEYSTORE_PASS
|
2022-09-09 16:58:08 +03:00
|
|
|
|
2022-09-09 18:33:44 +03:00
|
|
|
- name: Build Intermediate Android Release Artifact (.APK)
|
2022-09-09 16:58:08 +03:00
|
|
|
commands:
|
2022-09-10 03:15:26 +03:00
|
|
|
- ./ci.py --build-apk
|
2022-09-09 18:33:44 +03:00
|
|
|
environment:
|
|
|
|
STANDALONE_KEYSTORE_PASS:
|
|
|
|
from_secret: STANDALONE_KEYSTORE_PASS
|
|
|
|
FDROID_KEYSTORE_PASS:
|
|
|
|
from_secret: FDROID_KEYSTORE_PASS
|
2022-09-09 16:58:08 +03:00
|
|
|
|
2022-09-09 18:33:44 +03:00
|
|
|
- name: Sign Android Release Artifact (.APK) for Standalone Use
|
|
|
|
commands:
|
2022-09-10 03:15:26 +03:00
|
|
|
- ./ci.py --sign-apk-standalone
|
2022-09-09 18:33:44 +03:00
|
|
|
environment:
|
|
|
|
STANDALONE_KEYSTORE_PASS:
|
|
|
|
from_secret: STANDALONE_KEYSTORE_PASS
|
|
|
|
FDROID_KEYSTORE_PASS:
|
|
|
|
from_secret: FDROID_KEYSTORE_PASS
|
2022-09-09 16:58:08 +03:00
|
|
|
|
2022-09-09 18:33:44 +03:00
|
|
|
- name: Sign Android Release Artifact (.APK) for F-Droid Repository
|
|
|
|
commands:
|
2022-09-10 03:15:26 +03:00
|
|
|
- ./ci.py --sign-apk-fdroid
|
2022-09-09 18:33:44 +03:00
|
|
|
environment:
|
|
|
|
STANDALONE_KEYSTORE_PASS:
|
|
|
|
from_secret: STANDALONE_KEYSTORE_PASS
|
|
|
|
FDROID_KEYSTORE_PASS:
|
|
|
|
from_secret: FDROID_KEYSTORE_PASS
|
2022-09-09 16:58:08 +03:00
|
|
|
|
2022-09-09 18:33:44 +03:00
|
|
|
- name: Package Linux AppImage Artifact
|
|
|
|
commands:
|
2022-09-10 03:15:26 +03:00
|
|
|
- ./ci.py --package-linux-appimage
|
2022-09-09 18:28:17 +03:00
|
|
|
|
2022-09-09 18:33:44 +03:00
|
|
|
- name: Package Linux Flatpak Artifact
|
|
|
|
commands:
|
2022-09-10 03:15:26 +03:00
|
|
|
- ./ci.py --package-linux-flatpak
|
2022-09-09 18:28:17 +03:00
|
|
|
|
2022-09-09 18:33:44 +03:00
|
|
|
- name: Package Linux Archive Artifact
|
|
|
|
commands:
|
2022-09-10 03:15:26 +03:00
|
|
|
- ./ci.py --package-linux-archive
|
2022-08-31 13:17:35 +03:00
|
|
|
|
2022-08-31 14:55:54 +03:00
|
|
|
trigger:
|
|
|
|
event:
|
2022-09-09 16:58:08 +03:00
|
|
|
- tag
|
2022-08-31 14:55:54 +03:00
|
|
|
|
2022-08-31 13:17:35 +03:00
|
|
|
node:
|
|
|
|
server: builder
|