diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 433027638..7b7aebeca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,12 +62,8 @@ jobs: - name: Check if image exists run: | - if [[ $(docker manifest inspect ${{ env.DOCKER_DEPENDENCY_IMAGE_NAME }}:filehash-${{ env.DIR_HASH }} > /dev/null 2>&1) ]]; then - echo "Cache hit, do not require rebuild of this docker image. Retagging old image instead." - echo "CACHE_HIT=true" >> $GITHUB_ENV - else - echo "CACHE_HIT=false" >> $GITHUB_ENV - fi + EXISTS=$(docker manifest inspect ${{ env.DOCKER_DEPENDENCY_IMAGE_NAME }}:${{ env.DIR_HASH }} > /dev/null 2>&1 && echo "true" || echo "false") + echo "CACHE_HIT=$EXISTS" >> $GITHUB_ENV - name: Determine platform build necessity id: platform-check