ci: test docker regestry
Nix Docker Push Test / build-and-push (push) Failing after 37s
Nix with Cachix Action / test-nix (push) Failing after 26s

This commit is contained in:
2026-06-15 18:33:02 +09:00
parent dff9f45c75
commit 53e6c50ab6
2 changed files with 52 additions and 3 deletions
+17 -3
View File
@@ -1,17 +1,31 @@
{
description = "A simple Nix flake for testing Gitea Actions";
description = "A simple Nix flake for testing Gitea Actions Docker build";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
# Обычный пакет
packages.${system}.default = pkgs.hello;
# Docker образ
packages.${system}.dockerImage = pkgs.dockerTools.buildImage {
name = "test-nix-hello";
tag = "latest";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ pkgs.hello pkgs.coreutils ];
pathsToLink = [ "/bin" ];
};
config = {
Cmd = [ "/bin/hello" ];
};
};
};
}