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:
Glenn Jocher authored and GitHub committed 2022-05-18 17:23:42 +02:00
1 parent 9a7f289eed
commit 7d46c69235
1 file changed
+10 -10
+10 -10
View File
@@ -4,7 +4,7 @@ name: Publish Docker Images
on:
push:
branches: [master]
branches: [ master ]
# pull_request:
# branches: [master]
@@ -28,6 +28,15 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
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
uses: docker/build-push-action@v3
with:
@@ -43,12 +52,3 @@ jobs:
file: utils/docker/Dockerfile
push: true
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