glenn-jocher commited on
Commit
7d87b9e
Β·
unverified Β·
1 Parent(s): 6dd6aea

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

Browse files

* Update ci-testing.yml

* Update ci-testing.yml

* Update ci-testing.yml

* Update docker.yml

.github/workflows/ci-testing.yml CHANGED
@@ -89,6 +89,8 @@ jobs:
89
  echo "GITHUB_EVENT_NAME is $GITHUB_EVENT_NAME"
90
  echo "GITHUB_WORKFLOW is $GITHUB_WORKFLOW"
91
  echo "GITHUB_ACTOR is $GITHUB_ACTOR"
 
 
92
  - name: Run tests
93
  shell: bash
94
  run: |
 
89
  echo "GITHUB_EVENT_NAME is $GITHUB_EVENT_NAME"
90
  echo "GITHUB_WORKFLOW is $GITHUB_WORKFLOW"
91
  echo "GITHUB_ACTOR is $GITHUB_ACTOR"
92
+ echo "GITHUB_REPOSITORY is $GITHUB_REPOSITORY"
93
+ echo "GITHUB_REPOSITORY_OWNER is $GITHUB_REPOSITORY_OWNER"
94
  - name: Run tests
95
  shell: bash
96
  run: |
.github/workflows/docker.yml CHANGED
@@ -1,15 +1,15 @@
1
  # YOLOv5 πŸš€ by Ultralytics, GPL-3.0 license
 
2
 
3
  name: Publish Docker Images
4
 
5
  on:
6
  push:
7
  branches: [ master ]
8
- # pull_request:
9
- # branches: [master]
10
 
11
  jobs:
12
  docker:
 
13
  name: Push Docker image to Docker Hub
14
  runs-on: ubuntu-latest
15
  steps:
 
1
  # YOLOv5 πŸš€ by Ultralytics, GPL-3.0 license
2
+ # Builds ultralytics/yolov5:latest images on DockerHub https://hub.docker.com/r/ultralytics/yolov5
3
 
4
  name: Publish Docker Images
5
 
6
  on:
7
  push:
8
  branches: [ master ]
 
 
9
 
10
  jobs:
11
  docker:
12
+ if: github.repository == 'ultralytics/yolov5'
13
  name: Push Docker image to Docker Hub
14
  runs-on: ubuntu-latest
15
  steps: