mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-17 06:03:20 +00:00
new podman-based pipeline
This commit is contained in:
parent
3a0f2c332a
commit
3f9dc9e08a
20
.drone.yml
20
.drone.yml
|
@ -26,18 +26,38 @@ steps:
|
||||||
- name: Build Intermediate Linux Release Artifact (Binary)
|
- name: Build Intermediate Linux Release Artifact (Binary)
|
||||||
commands:
|
commands:
|
||||||
- ./ci.sh --build-linux
|
- ./ci.sh --build-linux
|
||||||
|
environment:
|
||||||
|
STANDALONE_KEYSTORE_PASS:
|
||||||
|
from_secret: STANDALONE_KEYSTORE_PASS
|
||||||
|
FDROID_KEYSTORE_PASS:
|
||||||
|
from_secret: FDROID_KEYSTORE_PASS
|
||||||
|
|
||||||
- name: Build Intermediate Android Release Artifact (.APK)
|
- name: Build Intermediate Android Release Artifact (.APK)
|
||||||
commands:
|
commands:
|
||||||
- ./ci.sh --build-apk
|
- ./ci.sh --build-apk
|
||||||
|
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: Sign Android Release Artifact (.APK) for Standalone Use
|
||||||
commands:
|
commands:
|
||||||
- ./ci.sh --sign-apk-standalone
|
- ./ci.sh --sign-apk-standalone
|
||||||
|
environment:
|
||||||
|
STANDALONE_KEYSTORE_PASS:
|
||||||
|
from_secret: STANDALONE_KEYSTORE_PASS
|
||||||
|
FDROID_KEYSTORE_PASS:
|
||||||
|
from_secret: FDROID_KEYSTORE_PASS
|
||||||
|
|
||||||
- name: Sign Android Release Artifact (.APK) for F-Droid Repository
|
- name: Sign Android Release Artifact (.APK) for F-Droid Repository
|
||||||
commands:
|
commands:
|
||||||
- ./ci.sh --sign-apk-fdroid
|
- ./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 AppImage Artifact
|
- name: Package Linux AppImage Artifact
|
||||||
commands:
|
commands:
|
||||||
|
|
4
ci.sh
4
ci.sh
|
@ -10,11 +10,11 @@ usage () {
|
||||||
}
|
}
|
||||||
|
|
||||||
podman_offline () {
|
podman_offline () {
|
||||||
podman run --rm -v `pwd`:/var/lib/builder/src:U -v "$HOME/fdroid:/var/lib/builder/repo:U" -v "$HOME/fdroid-keystore:/var/lib/builder/repo/fdroid-keystore:U" -v "$HOME/standalone-keystore:/var/lib/builder/repo/standalone-keystore:U" --env FDROID_KEYSTORE_PASS="$FDROID_KEYSTORE_PASS" --env STANDALONE_KEYSTORE_PASS="$STANDALONE_KEYSTORE_PASS" --network=none --workdir "$1" "$CONTAINER_IMAGE" "$2"
|
podman run --rm -v "`pwd`:/var/lib/builder/src:U" -v "$HOME/fdroid:/var/lib/builder/repo:U" -v "$HOME/fdroid-keystore:/var/lib/builder/repo/fdroid-keystore:U" -v "$HOME/standalone-keystore:/var/lib/builder/repo/standalone-keystore:U" --env FDROID_KEYSTORE_PASS="$FDROID_KEYSTORE_PASS" --env STANDALONE_KEYSTORE_PASS="$STANDALONE_KEYSTORE_PASS" --network=none --workdir "$1" "$CONTAINER_IMAGE" "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
podman_online () {
|
podman_online () {
|
||||||
podman run --rm -v `pwd`:/var/lib/builder/src:U --privileged --workdir "$1" "$CONTAINER_IMAGE" "$2"
|
podman run --rm -v "`pwd`:/var/lib/builder/src:U" --privileged --workdir "$1" "$CONTAINER_IMAGE" "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
build_linux () {
|
build_linux () {
|
||||||
|
|
Loading…
Reference in a new issue