Make Docker actions conditional on `ultralytics/yolov5` repo (#8060)
* Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update docker.ymlpull/8061/head
parent
6dd6aea086
commit
7d87b9eae8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue