switch to buildimage
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-26 14:36:17 +01:00
parent 6c564c97cf
commit d6741ddfa3
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -5,15 +5,8 @@ name: Build containers
steps: steps:
- name: buildImage - name: buildImage
image: nixos/nix image: git.chir.rs/darkkirb/nixos-containers:buildimage
commands: commands:
- echo "substituters = https://cache.nixos.org/ https://f000.backblazeb2.com/file/cache-chir-rs/" >> /etc/nix/nix.conf
- echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixcache:8KKuGz95Pk4UJ5W/Ni+pN+v+LDTkMMFV4yrGmAYgkDg= hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" >> /etc/nix/nix.conf
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- mkdir /etc/containers
- |
echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json
- nix-env -iA nixpkgs.skopeo
- nix build '.#buildImage' - nix build '.#buildImage'
- ./result | gzip --fast | skopeo copy --dest-creds=darkkirb:$GITEA_KEY docker-archive:/dev/stdin docker://git.chir.rs/darkkirb/nixos-containers:buildImage --dest-compress-format gzip --dest-compress-level 9 - ./result | gzip --fast | skopeo copy --dest-creds=darkkirb:$GITEA_KEY docker-archive:/dev/stdin docker://git.chir.rs/darkkirb/nixos-containers:buildImage --dest-compress-format gzip --dest-compress-level 9
environment: environment: