-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create docker.yml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update docker.yml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update docker.yml * Update docker.yml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Cleanup * Cleanup2 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e4d82c1
commit d7d2b10
Showing
4 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license | ||
|
||
name: Publish Docker Images | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
# pull_request: | ||
# branches: [master] | ||
|
||
jobs: | ||
docker: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push CPU image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: utils/docker/Dockerfile-cpu | ||
push: true | ||
tags: ultralytics/yolov5:latest-cpu | ||
|
||
- name: Build and push GPU image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters