Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
75b4f50f
Commit
75b4f50f
authored
Feb 03, 2015
by
Seth Vargo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add examples for Push template configuration
parent
677ddd34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
4 deletions
+30
-4
website/source/docs/templates/push.html.markdown
website/source/docs/templates/push.html.markdown
+30
-4
No files found.
website/source/docs/templates/push.html.markdown
View file @
75b4f50f
...
...
@@ -46,8 +46,8 @@ each category, the available configuration keys are alphabetized.
this is
`https://atlas.hashicorp.com`
.
*
`base_dir`
(string) - The base directory of the files to upload. This
will be the
CWD when the build service executes your template. This
path is relative to the template.
will be the
current working directory when the build service executes your
template. This
path is relative to the template.
*
`include`
(array of strings) - Glob patterns to include relative to
the
`base_dir`
. If this is specified, only files that match the include
...
...
@@ -57,9 +57,35 @@ each category, the available configuration keys are alphabetized.
the
`base_dir`
.
*
`token`
(string) - An access token to use to authenticate to the build
service. For Atlas, you can retrieve this access token in your account
section by clicking your account name in the upper right corner.
service.
*
`vcs`
(bool) - If true, Packer will detect your VCS (if there is one)
and only upload the files that are tracked by the VCS. This is useful
for automatically excluding ignored files. This defaults to false.
## Examples
A push configuration section with minimal options:
```
javascript
{
"
push
"
:
{
"
name
"
:
"
hashicorp/precise64
"
}
}
```
A push configuration specifying Packer to inspect the VCS and list individual
files to include:
```
javascript
{
"
push
"
:
{
"
name
"
:
"
hashicorp/precise64
"
,
"
vcs
"
:
true
,
"
include
"
:
[
"
other_file/outside_of.vcs
"
]
}
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment