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
|
- name: buildImage
|
||||||
image: git.chir.rs/darkkirb/nixos-containers:buildimage
|
image: git.chir.rs/darkkirb/nixos-containers:buildimage
|
||||||
commands:
|
commands:
|
||||||
|
- mkdir /tmp
|
||||||
- nix build '.#buildImage'
|
- 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:
|
environment:
|
||||||
GITEA_KEY:
|
GITEA_KEY:
|
||||||
from_secret: DOCKER_KEY
|
from_secret: DOCKER_KEY
|
||||||
|
|
|
@ -41,8 +41,9 @@
|
||||||
echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
|
echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
|
||||||
mkdir /etc/containers
|
mkdir /etc/containers
|
||||||
echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json
|
echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json
|
||||||
mkdir -p /nix/inputs
|
mkdir -p /etc/nix/inputs
|
||||||
ln ${nixpkgs} /nix/inputs/nixpkgs
|
mkdir /tmp
|
||||||
|
ln ${nixpkgs} /etc/nix/inputs/nixpkgs
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue