add coreutils and nixpkgs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e28b27e055
commit
6c564c97cf
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue