From ec26f75cfb0de349132a146c34547991c1783b4f Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 15 Feb 2024 09:38:28 +0100 Subject: [PATCH] ci: fix docker push docker does not support pushing and tagging with a different name in one go as podman does. Signed-off-by: Harald Hoyer --- .github/workflows/nix.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 6496941..e0c9385 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -101,5 +101,7 @@ jobs: export IMAGE_TAG=$(docker load < result | grep -Po 'Loaded image.*: \K.*') echo "Pushing image ${IMAGE_TAG} to Docker Hub" echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV - docker push "${IMAGE_TAG}" matterlabsrobot/"${IMAGE_TAG}" - docker push "${IMAGE_TAG}" matterlabsrobot/"${IMAGE_TAG%:*}:latest" + docker tag "${IMAGE_TAG}" matterlabsrobot/"${IMAGE_TAG}" + docker push matterlabsrobot/"${IMAGE_TAG}" + docker tag matterlabsrobot/"${IMAGE_TAG}" matterlabsrobot/"${IMAGE_TAG%:*}:latest" + docker push matterlabsrobot/"${IMAGE_TAG%:*}:latest"