No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

55 líneas
1.3KB

  1. # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
  2. name: Publish Docker Images
  3. on:
  4. push:
  5. branches: [ master ]
  6. # pull_request:
  7. # branches: [master]
  8. jobs:
  9. docker:
  10. name: Push Docker image to Docker Hub
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout repo
  14. uses: actions/checkout@v3
  15. - name: Set up QEMU
  16. uses: docker/setup-qemu-action@v2
  17. - name: Set up Docker Buildx
  18. uses: docker/setup-buildx-action@v2
  19. - name: Login to Docker Hub
  20. uses: docker/login-action@v2
  21. with:
  22. username: ${{ secrets.DOCKERHUB_USERNAME }}
  23. password: ${{ secrets.DOCKERHUB_TOKEN }}
  24. - name: Build and push arm64 image
  25. uses: docker/build-push-action@v3
  26. with:
  27. context: .
  28. platforms: linux/arm64
  29. file: utils/docker/Dockerfile-arm64
  30. push: true
  31. tags: ultralytics/yolov5:latest-arm64
  32. - name: Build and push CPU image
  33. uses: docker/build-push-action@v3
  34. with:
  35. context: .
  36. file: utils/docker/Dockerfile-cpu
  37. push: true
  38. tags: ultralytics/yolov5:latest-cpu
  39. - name: Build and push GPU image
  40. uses: docker/build-push-action@v3
  41. with:
  42. context: .
  43. file: utils/docker/Dockerfile
  44. push: true
  45. tags: ultralytics/yolov5:latest