Update .resin-sync.yml docs for local push and include example env vars

Change-type: patch
Signed-off-by: Tim Perry <tim@resin.io>
This commit is contained in:
Tim Perry 2018-07-31 21:46:07 +02:00
parent d8aaccf80c
commit e32eda26d9
2 changed files with 16 additions and 12 deletions

View File

@ -1431,12 +1431,14 @@ also change any option by editing '.resin-sync.yml' directly.
Here is an example '.resin-sync.yml' :
$ cat $PWD/.resin-sync.yml
destination: '/usr/src/app'
before: 'echo Hello'
after: 'echo Done'
ignore:
- .git
- node_modules/
local_resinos:
app-name: local-app
build-triggers:
- Dockerfile: abcdefabcdefabcdefabcdefabcdefabcdefabcdef
- package.json: abcdefabcdefabcdefabcdefabcdefabcdefabcdef
environment:
- MY_VARIABLE=123
Command line options have precedence over the ones saved in '.resin-sync.yml'.

View File

@ -43,12 +43,14 @@ resinPushHelp = '''
Here is an example '.resin-sync.yml' :
$ cat $PWD/.resin-sync.yml
destination: '/usr/src/app'
before: 'echo Hello'
after: 'echo Done'
ignore:
- .git
- node_modules/
local_resinos:
app-name: local-app
build-triggers:
- Dockerfile: abcdefabcdefabcdefabcdefabcdefabcdefabcdef
- package.json: abcdefabcdefabcdefabcdefabcdefabcdefabcdef
environment:
- MY_VARIABLE=123
Command line options have precedence over the ones saved in '.resin-sync.yml'.