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
6bd8c6ca
Commit
6bd8c6ca
authored
Oct 28, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/push: support custom endpoints
parent
2f65b1bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
command/push.go
command/push.go
+9
-1
packer/template.go
packer/template.go
+1
-0
No files found.
command/push.go
View file @
6bd8c6ca
...
...
@@ -58,8 +58,16 @@ func (c *PushCommand) Run(args []string) int {
}
// Build our client
c
.
client
=
harmony
.
DefaultClient
()
defer
func
()
{
c
.
client
=
nil
}()
c
.
client
=
harmony
.
DefaultClient
()
if
tpl
.
Push
.
Address
!=
""
{
c
.
client
,
err
=
harmony
.
NewClient
(
tpl
.
Push
.
Address
)
if
err
!=
nil
{
c
.
Ui
.
Error
(
fmt
.
Sprintf
(
"Error setting up API client: %s"
,
err
))
return
1
}
}
// Build the archiving options
var
opts
archive
.
ArchiveOpts
...
...
packer/template.go
View file @
6bd8c6ca
...
...
@@ -45,6 +45,7 @@ type Template struct {
// PushConfig is the configuration structure for the push settings.
type
PushConfig
struct
{
Name
string
Address
string
BaseDir
string
Include
[]
string
Exclude
[]
string
...
...
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