49nord/Build and push nix-based contaienr image
Builds a nix-expression into a docker image, optionally pushing it to a registry.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Nov 11, 2022
- License
- MIT
Pinned Snippet
uses: 49nord/nix-container-build@a03e1eadf948913eb68f1faf0909a6583acbe0cb # v4tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| src | The nix-expression to build that will result in a docker image | yes | docker.nix |
| registry | The docker registry to upload to, e.g. `registry.example.com` | no | — |
| path | The path on the registry to upload to, e.g. `/main-project/example-service` | no | — |
| username | Username to authenticate to registry with | no | — |
| password | Password to authenticate to registry with | no | — |
| tag | Tag to use for the uploaded image. If not given, determine automatically. `main` and `master` are always translated to the tag `latest`; otherwise versions | no | — |
| nixpkgs | Path 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. | no | https://github.com/NixOS/nixpkgs/archive/refs/tags/21.11.tar.gz |
Outputs
no outputs