Skip to content

Commit

Permalink
Make Docker actions conditional on ultralytics/yolov5 repo (ultraly…
Browse files Browse the repository at this point in the history
…tics#8060)

* Update ci-testing.yml

* Update ci-testing.yml

* Update ci-testing.yml

* Update docker.yml
  • Loading branch information
glenn-jocher authored and Clay Januhowski committed Sep 8, 2022
1 parent ce17236 commit 51fe121
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 51fe121

Please sign in to comment.