Tag latest image from master branch
This commit is contained in:
parent
0944afa940
commit
dfcd250892
@ -99,7 +99,7 @@ jobs:
|
|||||||
sha_short="$(echo "$SHA" | cut -c1-7)"
|
sha_short="$(echo "$SHA" | cut -c1-7)"
|
||||||
tags+=("$IMAGE_NAME:$branch_safe")
|
tags+=("$IMAGE_NAME:$branch_safe")
|
||||||
tags+=("$IMAGE_NAME:$branch_safe-$sha_short")
|
tags+=("$IMAGE_NAME:$branch_safe-$sha_short")
|
||||||
if [[ "$branch" == "main" ]]; then
|
if [[ "$branch" == "main" || "$branch" == "master" ]]; then
|
||||||
tags+=("$IMAGE_NAME:latest")
|
tags+=("$IMAGE_NAME:latest")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user