refactor(ci): use more generic script

This commit is contained in:
Thales Macedo Garitezi 2022-07-05 09:01:00 -03:00
parent b56be77ee7
commit 8296e004a0
2 changed files with 5 additions and 3 deletions

View File

@ -324,6 +324,8 @@ jobs:
working-directory: source
run: |
if [ ${{ matrix.build_elixir }} = 'with_elixir' ]; then
export IS_ELIXIR=yes
is_latest=false
else
is_latest="${{ needs.prepare.outputs.IS_DOCKER_LATEST }}"
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 }}" "$is_latest"

View File

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