Browse Source

Invert Docker Image publishing order (#7877)

To appear on Docker Hub in top down order:

- latest
- latest-cpu
- latest-arm64
modifyDataloader
Glenn Jocher GitHub 2 years ago
parent
commit
7d46c69235
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions
  1. +10
    -10
      .github/workflows/docker.yml

+ 10
- 10
.github/workflows/docker.yml 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

Loading…
Cancel
Save