diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-07-18 08:29:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-18 08:29:16 -0400 |
commit | d087adeb8716b7214ee925df749a34c8b3b01f4e (patch) | |
tree | cf129e24ec938424740c275226b7d3b2d60de9da /.cirrus.yml | |
parent | deff289a9fea26815983318b0a120ab652295eb8 (diff) | |
parent | f53812a11ebfcb7ccb46df998147048e8f2a27a3 (diff) | |
download | podman-d087adeb8716b7214ee925df749a34c8b3b01f4e.tar.gz podman-d087adeb8716b7214ee925df749a34c8b3b01f4e.tar.bz2 podman-d087adeb8716b7214ee925df749a34c8b3b01f4e.zip |
Merge pull request #6402 from alvistack/master-linux-amd64
[nix] Cleanup nix derivation for static builds
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 24 |
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}' |