add coreutils and nixpkgs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-26 10:02:13 +01:00
parent e28b27e055
commit 6c564c97cf
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 5 additions and 1 deletions

View file

@ -15,7 +15,7 @@ steps:
echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json
- nix-env -iA nixpkgs.skopeo
- nix build '.#buildImage'
- ./result | gzip --fast | skopeo copy --dest-creds darkkirb:$GITEA_KEY docker-archive:/dev/stdin docker://git.chir.rs/darkkirb/nix-containers:buildImage --dest-compress-format zstd --dest-compress-level 12
- ./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:
GITEA_KEY:
from_secret: DOCKER_KEY

View file

@ -25,6 +25,8 @@
gzip
skopeo
nix
coreutils
nixpkgs
];
config.Env = [
"USER=nobody"
@ -36,6 +38,8 @@
echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
mkdir /etc/containers
echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json
mkdir -p /nix/inputs
ln ${nixpkgs} /nix/inputs/nixpkgs
'';
};
};