This commit is contained in:
parent
c089220421
commit
e86d3c2ef5
2 changed files with 5 additions and 3 deletions
|
@ -7,8 +7,9 @@ steps:
|
|||
- name: buildImage
|
||||
image: git.chir.rs/darkkirb/nixos-containers:buildimage
|
||||
commands:
|
||||
- mkdir /tmp
|
||||
- nix build '.#buildImage'
|
||||
- cat reuslt | skopeo copy --dest-creds=darkkirb:$GITEA_KEY docker-archive:/dev/stdin docker://git.chir.rs/darkkirb/nixos-containers:buildImage --dest-compress-format gzip --dest-compress-level 9
|
||||
- cat result | skopeo copy --dest-creds=darkkirb:$GITEA_KEY docker-archive:/dev/stdin docker://git.chir.rs/darkkirb/nixos-containers:buildImage --dest-compress-format gzip --dest-compress-level 9
|
||||
environment:
|
||||
GITEA_KEY:
|
||||
from_secret: DOCKER_KEY
|
||||
|
|
|
@ -41,8 +41,9 @@
|
|||
echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
|
||||
mkdir /etc/containers
|
||||
echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json
|
||||
mkdir -p /nix/inputs
|
||||
ln ${nixpkgs} /nix/inputs/nixpkgs
|
||||
mkdir -p /etc/nix/inputs
|
||||
mkdir /tmp
|
||||
ln ${nixpkgs} /etc/nix/inputs/nixpkgs
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue