- docker pull "${IMAGE_NAME}:dev" - docker tag "${IMAGE_NAME}:dev" "${PROJECT_NAME}:dev" # The logic itself: - docker-compose build - docker-compose run --rm web test # Pushing back the result for future runs: - docker tag "${PROJECT_NAME}:dev" "${IMAGE_NAME}:dev" - docker push "${IMAGE_NAME}:dev"