Make Docker actions conditional on `ultralytics/yolov5` repo (#8060)

* Update ci-testing.yml

* Update ci-testing.yml

* Update ci-testing.yml

* Update docker.yml
pull/8061/head
Glenn Jocher 2022-05-31 16:36:57 +02:00 committed by GitHub
parent 6dd6aea086
commit 7d87b9eae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -89,6 +89,8 @@ jobs:
echo "GITHUB_EVENT_NAME is $GITHUB_EVENT_NAME"
echo "GITHUB_WORKFLOW is $GITHUB_WORKFLOW"
echo "GITHUB_ACTOR is $GITHUB_ACTOR"
echo "GITHUB_REPOSITORY is $GITHUB_REPOSITORY"
echo "GITHUB_REPOSITORY_OWNER is $GITHUB_REPOSITORY_OWNER"
- name: Run tests
shell: bash
run: |

View File

@ -1,15 +1,15 @@
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license
# Builds ultralytics/yolov5:latest images on DockerHub https://hub.docker.com/r/ultralytics/yolov5
name: Publish Docker Images
on:
push:
branches: [ master ]
# pull_request:
# branches: [master]
jobs:
docker:
if: github.repository == 'ultralytics/yolov5'
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps: