Introduce workdir

This commit is contained in:
Lars Gohr
2019-09-23 20:37:32 +02:00
parent 42252004bb
commit 1b9fb052a2
3 changed files with 26 additions and 0 deletions

View File

@@ -71,6 +71,17 @@ with:
dockerfile: MyDockerFileName
```
### workdir
Use `workdir` when you would like to change the directory for building.
```yaml
with:
name: myDocker/repository
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: mySubDirectory
```
### cache
Use `cache` when you have big images, that you would only like to build partially (changed layers).
> CAUTION: This will cache the non changed parts forever. If you use this option, make sure that these parts will be updated by another job!