ci-root: add docker images to ci-root
This commit is contained in:
parent
7f99b80dbe
commit
6b84fe71f7
2 changed files with 6 additions and 3 deletions
|
@ -9,11 +9,12 @@ let
|
||||||
prefixAttrs = prefix: lib.mapAttrsToList (name: value: { name = "${prefix}-${name}"; path = value; });
|
prefixAttrs = prefix: lib.mapAttrsToList (name: value: { name = "${prefix}-${name}"; path = value; });
|
||||||
ciMachines = prefixAttrs "machine" depot.ops.nixos;
|
ciMachines = prefixAttrs "machine" depot.ops.nixos;
|
||||||
ciPackages = prefixAttrs "pkg" depot.nix.pkgs;
|
ciPackages = prefixAttrs "pkg" depot.nix.pkgs;
|
||||||
|
ciDocker = prefixAttrs "docker" ((import ./docker-images.nix).images);
|
||||||
|
|
||||||
ciOther = prefixAttrs "other" {
|
ciOther = prefixAttrs "other" {
|
||||||
twitterchiver-archiver = depot.go.twitterchiver.archiver;
|
twitterchiver-archiver = depot.go.twitterchiver.archiver;
|
||||||
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
|
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciOther)
|
pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciDocker ++ ciOther)
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,10 @@ let
|
||||||
${crane} auth login ${name} -u "${value.user}" -p "${value.password}"
|
${crane} auth login ${name} -u "${value.user}" -p "${value.password}"
|
||||||
'') depot.ops.secrets.deployer.dockerRegistryAuth;
|
'') depot.ops.secrets.deployer.dockerRegistryAuth;
|
||||||
in
|
in
|
||||||
pkgs.writeShellScript "push-images" ''
|
((pkgs.writeShellScript "push-images" ''
|
||||||
${lib.concatStringsSep "\n" authCommands}
|
${lib.concatStringsSep "\n" authCommands}
|
||||||
|
|
||||||
${lib.concatStringsSep "\n" pushCommands}
|
${lib.concatStringsSep "\n" pushCommands}
|
||||||
''
|
'') // {
|
||||||
|
images = images;
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue