From 644fac6743f58057da3b3c35910f50affa29f8d3 Mon Sep 17 00:00:00 2001 From: Alya Sirko Date: Fri, 9 Sep 2022 19:04:22 +0300 Subject: [PATCH] new podman-based pipeline --- .drone.yml | 3 ++- ci.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 93a371a3..f694c546 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,8 @@ steps: - name: Prepare commands: - ln -s /var/lib/drone-runner-exec/.local $HOME/.local - - podman unshare chown -R 999:999 . + - podman volume exists src || podman volume create src + - git archive --format=tar HEAD | podman volume import src - - name: Build Intermediate Linux Release Artifact (Binary) commands: diff --git a/ci.sh b/ci.sh index fad78072..93bbb71a 100755 --- a/ci.sh +++ b/ci.sh @@ -10,11 +10,11 @@ usage () { } podman_offline () { - podman run --rm -v "`pwd`:/var/lib/builder/src" -v "/var/lib/drone-runner-exec/fdroid:/var/lib/builder/repo:U" -v "/var/lib/drone-runner-exec/fdroid-keystore:/var/lib/builder/repo/fdroid-keystore:U" -v "/var/lib/drone-runner-exec/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 "src:/var/lib/builder/src" -v "/var/lib/drone-runner-exec/fdroid:/var/lib/builder/repo:U" -v "/var/lib/drone-runner-exec/fdroid-keystore:/var/lib/builder/repo/fdroid-keystore:U" -v "/var/lib/drone-runner-exec/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 run --rm -v "`pwd`:/var/lib/builder/src" --privileged --workdir $1 "$CONTAINER_IMAGE" $2 + podman run --rm -v "src:/var/lib/builder/src" --privileged --workdir $1 "$CONTAINER_IMAGE" $2 } build_linux () {