Invert Docker Image publishing order (#7877)
To appear on Docker Hub in top down order: - latest - latest-cpu - latest-arm64
This commit is contained in:
1 parent
9a7f289eed
commit
7d46c69235
1 file changed
+10
-10
@@ -4,7 +4,7 @@ name: Publish Docker Images
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [ master ]
|
||||||
# pull_request:
|
# pull_request:
|
||||||
# branches: [master]
|
# branches: [master]
|
||||||
|
|
||||||
@@ -28,6 +28,15 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push arm64 image
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/arm64
|
||||||
|
file: utils/docker/Dockerfile-arm64
|
||||||
|
push: true
|
||||||
|
tags: ultralytics/yolov5:latest-arm64
|
||||||
|
|
||||||
- name: Build and push CPU image
|
- name: Build and push CPU image
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -43,12 +52,3 @@ jobs:
|
|||||||
file: utils/docker/Dockerfile
|
file: utils/docker/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ultralytics/yolov5:latest
|
tags: ultralytics/yolov5:latest
|
||||||
|
|
||||||
- name: Build and push arm64 image
|
|
||||||
uses: docker/build-push-action@v3
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
platforms: linux/arm64
|
|
||||||
file: utils/docker/Dockerfile-arm64
|
|
||||||
push: true
|
|
||||||
tags: ultralytics/yolov5:latest-arm64
|
|
||||||
Reference in new issue
Block a user