mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
Add a way to change the Docker build context
This commit is contained in:
11
README.md
11
README.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user