From 32eb568909bfbd42fdfdf6c0546760d53e9c8bb9 Mon Sep 17 00:00:00 2001 From: morguldir Date: Wed, 17 Apr 2024 23:01:28 +0200 Subject: [PATCH] Remove extra test flag when publishing to ghcr in the CI test -n checks if a string is longer than non-zero, but we just need a compare Signed-off-by: morguldir --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f2cc992..71388115 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -378,7 +378,7 @@ jobs: docker manifest create $IMAGE_NAME:$GITHUB_REF_NAME --amend $IMAGE_NAME:$GITHUB_SHA-$IMAGE_SUFFIX_AMD64 --amend $IMAGE_NAME:$GITHUB_SHA-$IMAGE_SUFFIX_ARM64V8 docker manifest push $IMAGE_NAME:$GITHUB_REF_NAME # Tag "main" as latest (stable branch) - if [[ -n "$GITHUB_REF_NAME" = "main" ]]; then + if [[ "$GITHUB_REF_NAME" = "main" ]]; then docker manifest create $IMAGE_NAME:latest --amend $IMAGE_NAME:$GITHUB_SHA-$IMAGE_SUFFIX_AMD64 --amend $IMAGE_NAME:$GITHUB_SHA-$IMAGE_SUFFIX_ARM64V8 docker manifest push $IMAGE_NAME:latest fi