From 5598ce3e0f3a3cfce69d008c808920950e8c1139 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sat, 24 Feb 2024 11:15:58 +0100 Subject: [PATCH] ci: fix docker default tag Docker uses "latest" as the default label instead of "master". This change will allow to docker run ghcr.io/nixos/nix without having to specify the label. It keeps the :master label on docker hub for back-compat. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fdd2d67f6..38126dd68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -153,6 +153,8 @@ jobs: IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') docker tag nix:$NIX_VERSION $IMAGE_ID:$NIX_VERSION - docker tag nix:$NIX_VERSION $IMAGE_ID:master + docker tag nix:$NIX_VERSION $IMAGE_ID:latest docker push $IMAGE_ID:$NIX_VERSION + docker push $IMAGE_ID:latest + # deprecated 2024-02-24 docker push $IMAGE_ID:master