2022-09-04 06:30:24 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
|
|
|
name: Continuous Integration
|
|
|
|
|
|
|
|
steps:
|
2022-09-10 15:10:27 +00:00
|
|
|
- name: Prepare
|
2022-09-04 06:30:24 +00:00
|
|
|
commands:
|
2022-09-10 15:10:27 +00:00
|
|
|
- ln -s /var/lib/drone-runner-exec/.local $HOME/.local
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
commands:
|
|
|
|
- ./ci.py --run-ci-build
|
2022-09-04 06:30:24 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
node:
|
|
|
|
server: builder
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
|
|
|
name: Release
|
|
|
|
|
|
|
|
steps:
|
2022-09-10 15:10:27 +00:00
|
|
|
- name: Prepare
|
2022-09-04 06:30:24 +00:00
|
|
|
commands:
|
2022-09-10 15:10:27 +00:00
|
|
|
- ln -s /var/lib/drone-runner-exec/.local $HOME/.local
|
|
|
|
- if podman volume exists src; then podman volume rm -f src; podman volume create src; else podman volume create src; fi
|
|
|
|
- git archive --format=tar HEAD | podman volume import src -
|
|
|
|
|
|
|
|
- name: Build Intermediate Linux Release Artifact (Binary)
|
|
|
|
commands:
|
|
|
|
- ./ci.py --build-linux
|
2022-09-04 06:30:24 +00:00
|
|
|
environment:
|
2022-09-10 15:10:27 +00:00
|
|
|
STANDALONE_KEYSTORE_PASS:
|
|
|
|
from_secret: STANDALONE_KEYSTORE_PASS
|
|
|
|
FDROID_KEYSTORE_PASS:
|
|
|
|
from_secret: FDROID_KEYSTORE_PASS
|
2022-09-04 06:30:24 +00:00
|
|
|
|
2022-09-10 15:10:27 +00:00
|
|
|
- name: Build Intermediate Android Release Artifact (.APK)
|
2022-09-04 06:30:24 +00:00
|
|
|
commands:
|
2022-09-10 15:10:27 +00:00
|
|
|
- ./ci.py --build-apk
|
2022-09-04 06:30:24 +00:00
|
|
|
environment:
|
2022-09-10 15:10:27 +00:00
|
|
|
STANDALONE_KEYSTORE_PASS:
|
|
|
|
from_secret: STANDALONE_KEYSTORE_PASS
|
|
|
|
FDROID_KEYSTORE_PASS:
|
|
|
|
from_secret: FDROID_KEYSTORE_PASS
|
2022-09-04 06:30:24 +00:00
|
|
|
|
2022-09-10 15:10:27 +00:00
|
|
|
- name: Sign Android Release Artifact (.APK) for Standalone Use
|
2022-09-04 06:30:24 +00:00
|
|
|
commands:
|
2022-09-10 15:10:27 +00:00
|
|
|
- ./ci.py --sign-apk-standalone
|
2022-09-04 06:30:24 +00:00
|
|
|
environment:
|
2022-09-10 15:10:27 +00:00
|
|
|
STANDALONE_KEYSTORE_PASS:
|
|
|
|
from_secret: STANDALONE_KEYSTORE_PASS
|
|
|
|
FDROID_KEYSTORE_PASS:
|
|
|
|
from_secret: FDROID_KEYSTORE_PASS
|
2022-09-04 06:30:24 +00:00
|
|
|
|
2022-09-10 15:10:27 +00:00
|
|
|
- name: Sign Android Release Artifact (.APK) for F-Droid Repository
|
2022-09-04 06:30:24 +00:00
|
|
|
commands:
|
2022-09-10 15:10:27 +00:00
|
|
|
- ./ci.py --sign-apk-fdroid
|
2022-09-04 06:30:24 +00:00
|
|
|
environment:
|
2022-09-10 15:10:27 +00:00
|
|
|
STANDALONE_KEYSTORE_PASS:
|
|
|
|
from_secret: STANDALONE_KEYSTORE_PASS
|
|
|
|
FDROID_KEYSTORE_PASS:
|
|
|
|
from_secret: FDROID_KEYSTORE_PASS
|
|
|
|
|
|
|
|
- name: Package Linux AppImage Artifact
|
|
|
|
commands:
|
|
|
|
- ./ci.py --package-linux-appimage
|
|
|
|
|
|
|
|
- name: Package Linux Flatpak Artifact
|
|
|
|
commands:
|
|
|
|
- ./ci.py --package-linux-flatpak
|
|
|
|
|
|
|
|
- name: Package Linux Archive Artifact
|
|
|
|
commands:
|
|
|
|
- ./ci.py --package-linux-archive
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|
2022-09-04 06:30:24 +00:00
|
|
|
|
2022-09-10 15:10:27 +00:00
|
|
|
node:
|
|
|
|
server: builder
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
|
|
|
name: Deploy
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Prepare
|
|
|
|
commands:
|
|
|
|
- ln -s /var/lib/drone-runner-exec/.local $HOME/.local
|
|
|
|
- podman unshare podman volume mount src
|
|
|
|
|
|
|
|
- name: Create Release and Deploy Artifacts
|
2022-09-04 06:30:24 +00:00
|
|
|
commands:
|
2022-09-10 15:10:27 +00:00
|
|
|
- podman unshare ./ci.py --deploy-gitea-release
|
2022-09-04 06:30:24 +00:00
|
|
|
environment:
|
|
|
|
GITEA_RELEASE_TOKEN:
|
|
|
|
from_secret: GITEA_RELEASE_TOKEN
|
|
|
|
|
2022-09-10 15:10:27 +00:00
|
|
|
- name: Deploy F-Droid Repo
|
2022-09-04 06:30:24 +00:00
|
|
|
commands:
|
2022-09-10 15:10:27 +00:00
|
|
|
- podman unshare ./ci.py --deploy-fdroid-repo
|
2022-09-04 06:30:24 +00:00
|
|
|
environment:
|
|
|
|
SSH_PRIVATE_KEY:
|
|
|
|
from_secret: SSH_PRIVATE_KEY
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
node:
|
|
|
|
server: builder
|
2022-09-10 15:10:27 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- Release
|