Make Docker actions conditional on ultralytics/yolov5 repo (#8060)
* Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update docker.yml
This commit is contained in:
1 parent
6dd6aea086
commit
7d87b9eae8
2 files changed
+4
-2
No files matched your search
@@ -89,6 +89,8 @@ jobs:
|
|||||||
echo "GITHUB_EVENT_NAME is $GITHUB_EVENT_NAME"
|
echo "GITHUB_EVENT_NAME is $GITHUB_EVENT_NAME"
|
||||||
echo "GITHUB_WORKFLOW is $GITHUB_WORKFLOW"
|
echo "GITHUB_WORKFLOW is $GITHUB_WORKFLOW"
|
||||||
echo "GITHUB_ACTOR is $GITHUB_ACTOR"
|
echo "GITHUB_ACTOR is $GITHUB_ACTOR"
|
||||||
|
echo "GITHUB_REPOSITORY is $GITHUB_REPOSITORY"
|
||||||
|
echo "GITHUB_REPOSITORY_OWNER is $GITHUB_REPOSITORY_OWNER"
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license
|
# 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
|
name: Publish Docker Images
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
# pull_request:
|
|
||||||
# branches: [master]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
|
if: github.repository == 'ultralytics/yolov5'
|
||||||
name: Push Docker image to Docker Hub
|
name: Push Docker image to Docker Hub
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in new issue
Block a user