From e0dd87351d615729464d547d3dc41d1b58b1756a Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 16 Apr 2024 12:20:55 -0500 Subject: [PATCH] Use predictable tags --- .gitignore | 1 + .gitlab-ci.yml | 2 +- flake.nix | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9b42106..d53e06f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .direnv/ +result diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c424020..9e3af95 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,6 @@ build: for img in vm-test; do nix build ".#${img}" podman load -i result - podman tag "${img}" $CI_REGISTRY/greg/ci-images/${img}:latest + podman tag "localhost/${img}:latest" $CI_REGISTRY/greg/ci-images/${img}:latest podman push "$CI_REGISTRY/greg/ci-images/${img}:latest" done diff --git a/flake.nix b/flake.nix index 78c8179..31c2953 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,7 @@ packages = { vm-test = pkgs.dockerTools.buildLayeredImage { name = "vm-test"; + tag = "latest"; contents = with pkgs; [ bash curl