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 <morguldir@protonmail.com>
This commit is contained in:
parent
bd25709446
commit
32eb568909
1 changed files with 1 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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 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
|
docker manifest push $IMAGE_NAME:$GITHUB_REF_NAME
|
||||||
# Tag "main" as latest (stable branch)
|
# 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 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
|
docker manifest push $IMAGE_NAME:latest
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue