aboutsummaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorWong Hoi Sing Edison <hswong3i@gmail.com>2020-05-27 14:30:40 +0800
committerWong Hoi Sing Edison <hswong3i@gmail.com>2020-07-18 09:03:28 +0800
commitf53812a11ebfcb7ccb46df998147048e8f2a27a3 (patch)
tree0cb9ce9f7957555dcb07b308b955549aee860478 /.cirrus.yml
parent10c5f241231a55a90a37b9f578c84a6bb23ae33e (diff)
downloadpodman-f53812a11ebfcb7ccb46df998147048e8f2a27a3.tar.gz
podman-f53812a11ebfcb7ccb46df998147048e8f2a27a3.tar.bz2
podman-f53812a11ebfcb7ccb46df998147048e8f2a27a3.zip
Cleanup nix derivation for static builds
Signed-off-by: Wong Hoi Sing Edison <hswong3i@gmail.com>
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml24
1 files changed, 16 insertions, 8 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 1d6d041ff..ccc78717e 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -756,17 +756,25 @@ success_task:
success_script: '/usr/local/bin/entrypoint.sh ./$SCRIPT_BASE/success.sh |& ${TIMESTAMP}'
+# Build the static binary
static_build_task:
- container:
- image: quay.io/podman/nix-podman:1.0.0
- cpu: 8
- memory: 12
- timeout_in: 20m
depends_on:
- "gating"
- build_script:
- - nix build -f nix
+ gce_instance:
+ image_name: "${FEDORA_CACHE_IMAGE_NAME}"
+ cpu: 8
+ memory: 12
+ disk: 200
+ script: |
+ set -ex
+ setenforce 0
+ growpart /dev/sda 1 || true
+ resize2fs /dev/sda1 || true
+ yum -y install podman
+ mkdir -p /nix
+ podman run --rm --privileged -ti -v /:/mnt nixos/nix cp -rfT /nix /mnt/nix
+ podman run --rm --privileged -ti -v /nix:/nix -v ${PWD}:${PWD} -w ${PWD} nixos/nix nix --print-build-logs --option cores 8 --option max-jobs 8 build --file nix/
binaries_artifacts:
- path: "result-bin/bin/podman"
+ path: "result/bin/podman"
on_failure:
failed_branch_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_branch_failure.sh |& ${TIMESTAMP}'