Add option for building pull requests

This commit is contained in:
Lars Gohr
2019-09-07 21:02:59 +02:00
parent 91a3945f7b
commit a48ee1845e
3 changed files with 65 additions and 1 deletions

View File

@@ -80,3 +80,16 @@ with:
password: ${{ secrets.DOCKER_PASSWORD }}
cache: true
```
### pull_requests
Use `pull_requests` if you would like to publish pull requests.
The images will be published under 'pr{NUMBER_OF_PR}{ACTION_IN_REF}'
> CAUTION: Only activate this option, when you are really sure, that nobody will be able to do something bad in your name within the PR.
```yaml
with:
name: myDocker/repository
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
pull_requests: true
```