# we are not going to use upload/download actions, since it is slower than cache usage
# as key to the cache we are going to use DOCKER_IMAGES_KEY, which is the same as GITHUB_RUN_ID

name: upload docker images
description: upload docker images
runs:
  using: "composite"
  steps:

    - uses: Wandalen/wretry.action@master
      with:
        attempt_limit: 3
        action: buildjet/cache@v3
        with: |
          path: /tmp/docker/images
          key: docker-images-cache-${{ env.DOCKER_IMAGES_KEY }}
          restore-keys: docker-images-cache-${{ env.DOCKER_IMAGES_KEY }}


