Add a way to change the Docker build context

This commit is contained in:
Lars Gohr
2019-11-29 14:08:47 +01:00
parent 6b75d10322
commit 2b131c1355
3 changed files with 50 additions and 2 deletions

View File

@@ -89,6 +89,17 @@ with:
workdir: mySubDirectory
```
### context
Use `context` when you would like to change the Docker build context.
```yaml
with:
name: myDocker/repository
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
context: myContextDirectory
```
### buildargs
Use `buildargs` when you want to pass a list of environment variables as [build-args](https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg). Identifiers are separated by comma.
All `buildargs` will be masked, so that they don't appear in the logs.