Apparently nix build does not output the store path to stdout
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-26 07:19:04 +01:00
parent 7726ff0df6
commit a45c9c7858
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -14,7 +14,8 @@ steps:
- | - |
echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json
- nix-env -iA nixpkgs.skopeo - nix-env -iA nixpkgs.skopeo
- $(nix build '.#buildImage') | gzip --fast | skopeo copy --dest-creds=gitea-bot:$GITEA_KEY docker-archive:/dev/stdin docker://git.chir.rs/darkkirb/nix-containers:buildImage --dest-compress-format zstd --dest-compress-level 12 - nix build '.#buildImage'
- ./result | gzip --fast | skopeo copy --dest-creds=gitea-bot:$GITEA_KEY docker-archive:/dev/stdin docker://git.chir.rs/darkkirb/nix-containers:buildImage --dest-compress-format zstd --dest-compress-level 12
environment: environment:
GITEA_KEY: GITEA_KEY:
from_secret: GITEA_KEY from_secret: GITEA_KEY