This commit is contained in:
parent
a45c9c7858
commit
1f937f7239
2 changed files with 35 additions and 30 deletions
|
@ -15,7 +15,7 @@ steps:
|
|||
echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json
|
||||
- nix-env -iA nixpkgs.skopeo
|
||||
- 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
|
||||
- ./result | gzip --fast | skopeo copy --dest-creds=darkkirb:$GITEA_KEY docker-archive:/dev/stdin docker://git.chir.rs/darkkirb/nix-containers:buildImage --dest-compress-format zstd --dest-compress-level 12
|
||||
environment:
|
||||
GITEA_KEY:
|
||||
from_secret: GITEA_KEY
|
||||
from_secret: DOCKER_KEY
|
||||
|
|
11
flake.nix
11
flake.nix
|
@ -6,9 +6,14 @@
|
|||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, ...} @ inputs: flake-utils.lib.eachSystem ["aarch64-linux" "x86_64-linux"] (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
...
|
||||
} @ inputs:
|
||||
flake-utils.lib.eachSystem ["aarch64-linux" "x86_64-linux"] (system: let
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
in rec {
|
||||
formatter = pkgs.alejandra;
|
||||
packages = {
|
||||
|
|
Loading…
Reference in a new issue