std icon indicating copy to clipboard operation
std copied to clipboard

Publish Action for oci-images / normal packages

Open blaggacao opened this issue 3 years ago • 3 comments

path=$(nix eval --raw .#x86_64-linux.cloud.oci-images.jormungandr-fund9-dryrun --impure)
  hash=${path:11:[3](https://github.com/input-output-hk/cardano-gov-world/runs/7335000765?check_suite_focus=true#step:4:3)2}
  url="https://iog.cachix.org/$hash.narinfo";
  if curl --output /dev/null --silent --head --fail "$url"; then
    echo "Nothing to push!!!"
  else
    nix run .#x86_6[4](https://github.com/input-output-hk/cardano-gov-world/runs/7335000765?check_suite_focus=true#step:4:4)-linux.cloud.oci-images.jormungandr-fund[9](https://github.com/input-output-hk/cardano-gov-world/runs/7335000765?check_suite_focus=true#step:4:9)-dryrun.copyToRegistry --show-trace --impure
  fi

@garbas @nrdxp

blaggacao avatar Jul 14 '22 18:07 blaggacao

related to NixOS/nix#3946

We can add this as a compatibility layer for now, especially since nix-build-uncached relies on legacy commands, meaning we lose the flake nixConfig, so I think you're approach is more minimal and appropriate for a flake based system like std for sure.

Hopefully it is solved upstream at some point though.

nrdxp avatar Jul 14 '22 20:07 nrdxp

    · Check the existence of a path in a binary cache:

          | # nix path-info -r /nix/store/blzxgyvrk32ki6xga10phr4sby2xf25q-geeqie-1.5.1 --store https://cache.nixos.org/
          | path '/nix/store/blzxgyvrk32ki6xga10phr4sby2xf25q-geeqie-1.5.1' is not valid
          |

blaggacao avatar Jul 21 '22 02:07 blaggacao

https://github.com/input-output-hk/mamba-world/commit/35c2d037e2482446754b1af06cdbe657e05b70a2

blaggacao avatar Sep 20 '22 20:09 blaggacao

This is implemented, but without the already-exists-query. To that end, we're discussing:

https://github.com/divnix/std-action/issues/2

blaggacao avatar Dec 18 '22 20:12 blaggacao