49nord/Build and push nix-based contaienr image

Builds a nix-expression into a docker image, optionally pushing it to a registry.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Nov 11, 2022
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: 49nord/nix-container-build@a03e1eadf948913eb68f1faf0909a6583acbe0cb # v4

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
srcThe nix-expression to build that will result in a docker imageyesdocker.nix
registryThe docker registry to upload to, e.g. `registry.example.com`no
pathThe path on the registry to upload to, e.g. `/main-project/example-service`no
usernameUsername to authenticate to registry withno
passwordPassword to authenticate to registry withno
tagTag to use for the uploaded image. If not given, determine automatically. `main` and `master` are always translated to the tag `latest`; otherwise versionsno
nixpkgsPath to the version of nixpkgs used for the upload. Anything that can be used with the `-I` option of `nix-shell`. Default is the `21.11` tag of nixpkgs.nohttps://github.com/NixOS/nixpkgs/archive/refs/tags/21.11.tar.gz

no outputs