create /tmp
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-27 20:33:35 +01:00
parent c089220421
commit e86d3c2ef5
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 5 additions and 3 deletions

View file

@ -7,8 +7,9 @@ steps:
- name: buildImage - name: buildImage
image: git.chir.rs/darkkirb/nixos-containers:buildimage image: git.chir.rs/darkkirb/nixos-containers:buildimage
commands: commands:
- mkdir /tmp
- nix build '.#buildImage' - nix build '.#buildImage'
- cat reuslt | 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 - cat result | 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:
GITEA_KEY: GITEA_KEY:
from_secret: DOCKER_KEY from_secret: DOCKER_KEY

View file

@ -41,8 +41,9 @@
echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
mkdir /etc/containers mkdir /etc/containers
echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json
mkdir -p /nix/inputs mkdir -p /etc/nix/inputs
ln ${nixpkgs} /nix/inputs/nixpkgs mkdir /tmp
ln ${nixpkgs} /etc/nix/inputs/nixpkgs
''; '';
}; };
}; };