fix(docker): avoid tagging elixir image as latest

This commit is contained in:
Thales Macedo Garitezi 2022-07-04 17:02:52 -03:00
parent f1d87944a9
commit b56be77ee7
2 changed files with 4 additions and 1 deletions

View File

@ -323,4 +323,7 @@ jobs:
if: ${{ needs.prepare.outputs.IS_EXACT_TAG }} if: ${{ needs.prepare.outputs.IS_EXACT_TAG }}
working-directory: source working-directory: source
run: | run: |
if [ ${{ matrix.build_elixir }} = 'with_elixir' ]; then
export IS_ELIXIR=yes
fi
scripts/docker-create-push-manifests.sh "${{ steps.meta.outputs.tags }}" "${{ needs.prepare.outputs.IS_DOCKER_LATEST }}" scripts/docker-create-push-manifests.sh "${{ steps.meta.outputs.tags }}" "${{ needs.prepare.outputs.IS_DOCKER_LATEST }}"

View File

@ -18,7 +18,7 @@ docker manifest create "${img_march}" \
docker manifest push "${img_march}" docker manifest push "${img_march}"
# PUSH latest if it is a release build # PUSH latest if it is a release build
if [ "$IsPushLatest" = "true" ]; then if [ "$IsPushLatest" = "true" -a "${IS_ELIXIR:-no}" = "no" ]; then
img_latest=$(echo "$img_arm64" | cut -d: -f 1):latest img_latest=$(echo "$img_arm64" | cut -d: -f 1):latest
docker manifest create "${img_latest}" \ docker manifest create "${img_latest}" \
--amend "$img_amd64_digest" \ --amend "$img_amd64_digest" \