Skip to content

Commit

Permalink
Invert Docker Image publishing order (ultralytics#7877)
Browse files Browse the repository at this point in the history
To appear on Docker Hub in top down order:

- latest
- latest-cpu
- latest-arm64
  • Loading branch information
glenn-jocher authored and Clay Januhowski committed Sep 8, 2022
1 parent 7f66fdf commit 4982a79
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Publish Docker Images

on:
push:
branches: [master]
branches: [ master ]
# pull_request:
# branches: [master]

Expand All @@ -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:
Expand All @@ -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

0 comments on commit 4982a79

Please sign in to comment.