selfprivacy.org.app/.drone.yml

82 lines
1.9 KiB
YAML
Raw Normal View History

2022-09-09 13:58:08 +00:00
#kind: pipeline
#type: exec
#name: Continuous Integration
#
#steps:
#
#trigger:
# event:
# - push
# - pull_request
#
#node:
# server: builder
#
#---
kind: pipeline
type: exec
2022-09-09 13:58:08 +00:00
name: Release
2022-09-09 11:25:08 +00:00
2022-08-31 10:17:35 +00:00
steps:
2022-09-09 14:37:04 +00:00
- name: Prepare
commands:
- ln -s /var/lib/drone-runner-exec/.local $HOME/.local
2022-09-09 17:50:35 +00: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 16:04:22 +00:00
- git archive --format=tar HEAD | podman volume import src -
2022-09-09 14:37:04 +00:00
- name: Build Intermediate Linux Release Artifact (Binary)
2022-09-09 13:58:08 +00:00
commands:
2022-09-09 15:40:11 +00:00
- ./ci.sh --build-linux
environment:
STANDALONE_KEYSTORE_PASS:
from_secret: STANDALONE_KEYSTORE_PASS
FDROID_KEYSTORE_PASS:
from_secret: FDROID_KEYSTORE_PASS
2022-09-09 13:58:08 +00:00
- name: Build Intermediate Android Release Artifact (.APK)
2022-09-09 13:58:08 +00:00
commands:
2022-09-09 15:40:11 +00:00
- ./ci.sh --build-apk
environment:
STANDALONE_KEYSTORE_PASS:
from_secret: STANDALONE_KEYSTORE_PASS
FDROID_KEYSTORE_PASS:
from_secret: FDROID_KEYSTORE_PASS
2022-09-09 13:58:08 +00:00
- name: Sign Android Release Artifact (.APK) for Standalone Use
commands:
- ./ci.sh --sign-apk-standalone
environment:
STANDALONE_KEYSTORE_PASS:
from_secret: STANDALONE_KEYSTORE_PASS
FDROID_KEYSTORE_PASS:
from_secret: FDROID_KEYSTORE_PASS
2022-09-09 13:58:08 +00:00
- name: Sign Android Release Artifact (.APK) for F-Droid Repository
commands:
- ./ci.sh --sign-apk-fdroid
environment:
STANDALONE_KEYSTORE_PASS:
from_secret: STANDALONE_KEYSTORE_PASS
FDROID_KEYSTORE_PASS:
from_secret: FDROID_KEYSTORE_PASS
2022-09-09 13:58:08 +00:00
- name: Package Linux AppImage Artifact
commands:
- ./ci.sh --package-linux-appimage
2022-09-09 15:28:17 +00:00
- name: Package Linux Flatpak Artifact
commands:
- ./ci.sh --package-linux-flatpak
2022-09-09 15:28:17 +00:00
- name: Package Linux Archive Artifact
commands:
- ./ci.sh --package-linux-archive
2022-08-31 10:17:35 +00:00
2022-08-31 11:55:54 +00:00
trigger:
event:
2022-09-09 13:58:08 +00:00
- tag
2022-08-31 11:55:54 +00:00
2022-08-31 10:17:35 +00:00
node:
server: builder