Browse Source
Make Docker actions conditional on `ultralytics/yolov5` repo (#8060)
* Update ci-testing.yml
* Update ci-testing.yml
* Update ci-testing.yml
* Update docker.yml
modifyDataloader
Glenn Jocher
GitHub
2 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
2 deletions
-
.github/workflows/ci-testing.yml
-
.github/workflows/docker.yml
|
|
@@ -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: | |
|
|
@@ -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: |