mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-16 21:53:17 +00:00
new podman-based pipeline
This commit is contained in:
parent
68ac4d414b
commit
d4fa2edf23
92
.drone.yml
92
.drone.yml
|
@ -23,59 +23,65 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- ln -s /var/lib/drone-runner-exec/.local $HOME/.local
|
- ln -s /var/lib/drone-runner-exec/.local $HOME/.local
|
||||||
|
|
||||||
- name: Build Intermediate Linux Release Artifact (Binary)
|
- name: Test 1
|
||||||
commands:
|
commands:
|
||||||
- bash ci.sh --build-linux
|
- ./ci.sh --test
|
||||||
environment:
|
|
||||||
STANDALONE_KEYSTORE_PASS:
|
|
||||||
from_secret: STANDALONE_KEYSTORE_PASS
|
|
||||||
FDROID_KEYSTORE_PASS:
|
|
||||||
from_secret: FDROID_KEYSTORE_PASS
|
|
||||||
|
|
||||||
- name: Debug
|
- name: Test 2
|
||||||
commands:
|
commands:
|
||||||
- ls -la
|
- ./ci.sh --test2
|
||||||
- cat ci.sh
|
|
||||||
- bash ci.sh
|
|
||||||
|
|
||||||
- name: Build Intermediate Android Release Artifact (.APK)
|
- name: Test 3
|
||||||
commands:
|
commands:
|
||||||
- bash ci.sh --build-apk
|
- ./ci.sh --test3
|
||||||
environment:
|
|
||||||
STANDALONE_KEYSTORE_PASS:
|
|
||||||
from_secret: STANDALONE_KEYSTORE_PASS
|
|
||||||
FDROID_KEYSTORE_PASS:
|
|
||||||
from_secret: FDROID_KEYSTORE_PASS
|
|
||||||
|
|
||||||
- name: Sign Android Release Artifact (.APK) for Standalone Use
|
# - name: Build Intermediate Linux Release Artifact (Binary)
|
||||||
commands:
|
# commands:
|
||||||
- ./ci.sh --sign-apk-standalone
|
# - bash ci.sh --build-linux
|
||||||
environment:
|
# environment:
|
||||||
STANDALONE_KEYSTORE_PASS:
|
# STANDALONE_KEYSTORE_PASS:
|
||||||
from_secret: STANDALONE_KEYSTORE_PASS
|
# from_secret: STANDALONE_KEYSTORE_PASS
|
||||||
FDROID_KEYSTORE_PASS:
|
# FDROID_KEYSTORE_PASS:
|
||||||
from_secret: FDROID_KEYSTORE_PASS
|
# from_secret: FDROID_KEYSTORE_PASS
|
||||||
|
|
||||||
- name: Sign Android Release Artifact (.APK) for F-Droid Repository
|
# - name: Build Intermediate Android Release Artifact (.APK)
|
||||||
commands:
|
# commands:
|
||||||
- ./ci.sh --sign-apk-fdroid
|
# - bash ci.sh --build-apk
|
||||||
environment:
|
# environment:
|
||||||
STANDALONE_KEYSTORE_PASS:
|
# STANDALONE_KEYSTORE_PASS:
|
||||||
from_secret: STANDALONE_KEYSTORE_PASS
|
# from_secret: STANDALONE_KEYSTORE_PASS
|
||||||
FDROID_KEYSTORE_PASS:
|
# FDROID_KEYSTORE_PASS:
|
||||||
from_secret: FDROID_KEYSTORE_PASS
|
# from_secret: FDROID_KEYSTORE_PASS
|
||||||
|
|
||||||
- name: Package Linux AppImage Artifact
|
# - name: Sign Android Release Artifact (.APK) for Standalone Use
|
||||||
commands:
|
# commands:
|
||||||
- ./ci.sh --package-linux-appimage
|
# - ./ci.sh --sign-apk-standalone
|
||||||
|
# environment:
|
||||||
|
# STANDALONE_KEYSTORE_PASS:
|
||||||
|
# from_secret: STANDALONE_KEYSTORE_PASS
|
||||||
|
# FDROID_KEYSTORE_PASS:
|
||||||
|
# from_secret: FDROID_KEYSTORE_PASS
|
||||||
|
|
||||||
- name: Package Linux Flatpak Artifact
|
# - name: Sign Android Release Artifact (.APK) for F-Droid Repository
|
||||||
commands:
|
# commands:
|
||||||
- ./ci.sh --package-linux-flatpak
|
# - ./ci.sh --sign-apk-fdroid
|
||||||
|
# environment:
|
||||||
|
# STANDALONE_KEYSTORE_PASS:
|
||||||
|
# from_secret: STANDALONE_KEYSTORE_PASS
|
||||||
|
# FDROID_KEYSTORE_PASS:
|
||||||
|
# from_secret: FDROID_KEYSTORE_PASS
|
||||||
|
|
||||||
- name: Package Linux Archive Artifact
|
# - name: Package Linux AppImage Artifact
|
||||||
commands:
|
# commands:
|
||||||
- ./ci.sh --package-linux-archive
|
# - ./ci.sh --package-linux-appimage
|
||||||
|
|
||||||
|
# - name: Package Linux Flatpak Artifact
|
||||||
|
# commands:
|
||||||
|
# - ./ci.sh --package-linux-flatpak
|
||||||
|
|
||||||
|
# - name: Package Linux Archive Artifact
|
||||||
|
# commands:
|
||||||
|
# - ./ci.sh --package-linux-archive
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
|
14
ci.sh
14
ci.sh
|
@ -2,7 +2,7 @@
|
||||||
set -o errexit -o pipefail -o noclobber -o nounset -x
|
set -o errexit -o pipefail -o noclobber -o nounset -x
|
||||||
|
|
||||||
CONTAINER_IMAGE="localhost/flutter-build-env"
|
CONTAINER_IMAGE="localhost/flutter-build-env"
|
||||||
OPTS=$(getopt -o "" --long "build-linux,build-apk,sign-apk-standalone,sign-apk-fdroid,package-linux-appimage,package-linux-flatpak,package-linux-archive" -- "$@")
|
OPTS=$(getopt -o "" --long "test,test2,test3,build-linux,build-apk,sign-apk-standalone,sign-apk-fdroid,package-linux-appimage,package-linux-flatpak,package-linux-archive" -- "$@")
|
||||||
eval set -- "$OPTS"
|
eval set -- "$OPTS"
|
||||||
|
|
||||||
usage () {
|
usage () {
|
||||||
|
@ -52,8 +52,16 @@ package_linux_archive () {
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--build-linux )
|
--test )
|
||||||
build_linux
|
echo 1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--test2 )
|
||||||
|
echo 2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--test3 )
|
||||||
|
echo 3
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--build-apk )
|
--build-apk )
|
||||||
|
|
Loading…
Reference in a new issue