glenn-jocher commited on
Commit
7d46c69
1 Parent(s): 9a7f289

Invert Docker Image publishing order (#7877)

Browse files

To appear on Docker Hub in top down order:

- latest
- latest-cpu
- latest-arm64

Files changed (1) hide show
  1. .github/workflows/docker.yml +10 -10
.github/workflows/docker.yml CHANGED
@@ -4,7 +4,7 @@ name: Publish Docker Images
4
 
5
  on:
6
  push:
7
- branches: [master]
8
  # pull_request:
9
  # branches: [master]
10
 
@@ -28,6 +28,15 @@ jobs:
28
  username: ${{ secrets.DOCKERHUB_USERNAME }}
29
  password: ${{ secrets.DOCKERHUB_TOKEN }}
30
 
 
 
 
 
 
 
 
 
 
31
  - name: Build and push CPU image
32
  uses: docker/build-push-action@v3
33
  with:
@@ -43,12 +52,3 @@ jobs:
43
  file: utils/docker/Dockerfile
44
  push: true
45
  tags: ultralytics/yolov5:latest
46
-
47
- - name: Build and push arm64 image
48
- uses: docker/build-push-action@v3
49
- with:
50
- context: .
51
- platforms: linux/arm64
52
- file: utils/docker/Dockerfile-arm64
53
- push: true
54
- tags: ultralytics/yolov5:latest-arm64
 
4
 
5
  on:
6
  push:
7
+ branches: [ master ]
8
  # pull_request:
9
  # branches: [master]
10
 
 
28
  username: ${{ secrets.DOCKERHUB_USERNAME }}
29
  password: ${{ secrets.DOCKERHUB_TOKEN }}
30
 
31
+ - name: Build and push arm64 image
32
+ uses: docker/build-push-action@v3
33
+ with:
34
+ context: .
35
+ platforms: linux/arm64
36
+ file: utils/docker/Dockerfile-arm64
37
+ push: true
38
+ tags: ultralytics/yolov5:latest-arm64
39
+
40
  - name: Build and push CPU image
41
  uses: docker/build-push-action@v3
42
  with:
 
52
  file: utils/docker/Dockerfile
53
  push: true
54
  tags: ultralytics/yolov5:latest