Tweak image build to simplify

This commit is contained in:
Greg Hellings
2025-11-25 22:05:36 -06:00
parent 33512d6ca0
commit 3d6b9fa64b
4 changed files with 4 additions and 8 deletions
-5
View File
@@ -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"
+1 -1
View File
@@ -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
+2 -1
View File
@@ -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
View File
@@ -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