Tweak image build to simplify
This commit is contained in:
@@ -43,7 +43,6 @@ default:
|
|||||||
"$CI_REGISTRY"
|
"$CI_REGISTRY"
|
||||||
- cp -r ~/.nix-profile/etc/containers /etc
|
- cp -r ~/.nix-profile/etc/containers /etc
|
||||||
- podman load -i result
|
- podman load -i result
|
||||||
- podman tag "localhost/${IMG}:latest" "$CI_CONTAINER_IMAGE/${IMG}:latest"
|
|
||||||
- podman push "$CI_REGISTRY_IMAGE/${IMG}:latest"
|
- podman push "$CI_REGISTRY_IMAGE/${IMG}:latest"
|
||||||
# "Build image":
|
# "Build image":
|
||||||
# stage: build
|
# stage: build
|
||||||
@@ -77,8 +76,4 @@ default:
|
|||||||
# }
|
# }
|
||||||
# EOF
|
# EOF
|
||||||
# - ./podman/bin/podman load -i "${IMG}.tar.gz"
|
# - ./podman/bin/podman load -i "${IMG}.tar.gz"
|
||||||
# - >-
|
|
||||||
# ./podman/bin/podman tag
|
|
||||||
# "localhost/${IMG}:latest"
|
|
||||||
# "$CI_REGISTRY/greg/nixos-config/${IMG}:latest"
|
|
||||||
# - ./podman/bin/podman push "$CI_REGISTRY/greg/nixos-config/${IMG}:latest"
|
# - ./podman/bin/podman push "$CI_REGISTRY/greg/nixos-config/${IMG}:latest"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
dockerTools.buildLayeredImage {
|
dockerTools.buildLayeredImage {
|
||||||
name = "img-bitwarden";
|
name = "registry.thehellings.com/greg/nixos-config/img-bitwarden";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
contents = [
|
contents = [
|
||||||
dockerTools.binSh
|
dockerTools.binSh
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ let
|
|||||||
in
|
in
|
||||||
(import "${nix.src.outPath}/docker.nix" {
|
(import "${nix.src.outPath}/docker.nix" {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
name = "img-builder";
|
name = "registry.thehellings.com/greg/nixos-config/img-builder";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
|
|
||||||
bundleNixpkgs = false;
|
bundleNixpkgs = false;
|
||||||
@@ -44,6 +44,7 @@ in
|
|||||||
extraPkgs = [
|
extraPkgs = [
|
||||||
dockerTools.caCertificates
|
dockerTools.caCertificates
|
||||||
podman
|
podman
|
||||||
|
policy
|
||||||
];
|
];
|
||||||
flake-registry = (pkgs.formats.json { }).generate "flake-registry.json" ({
|
flake-registry = (pkgs.formats.json { }).generate "flake-registry.json" ({
|
||||||
version = 2;
|
version = 2;
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
dockerTools.buildLayeredImage {
|
dockerTools.buildLayeredImage {
|
||||||
name = "img-immich";
|
name = "registry.thehellings.com/greg/nixos-config/img-immich";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
contents = [
|
contents = [
|
||||||
dockerTools.binSh
|
dockerTools.binSh
|
||||||
|
|||||||
Reference in New Issue
Block a user