diff options
author | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2019-03-25 10:34:02 +0100 |
---|---|---|
committer | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2019-03-25 10:34:02 +0100 |
commit | 100044871faa0e1de2f62728c3d5b83e1ce41176 (patch) | |
tree | e6cf1968d23cba398dae25174567616f45fb53d2 /actions/ostree_deploy_action.go | |
parent | 4a31eda27ed921e8d8b8c705facd554c8fff490c (diff) |
New upstream version 1.0.0+git20190319.cf3fc48
Diffstat (limited to 'actions/ostree_deploy_action.go')
-rw-r--r-- | actions/ostree_deploy_action.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/actions/ostree_deploy_action.go b/actions/ostree_deploy_action.go index dab2265..7d6e6bd 100644 --- a/actions/ostree_deploy_action.go +++ b/actions/ostree_deploy_action.go @@ -18,6 +18,7 @@ Yaml syntax: setup-fstab: bool setup-kernel-cmdline: bool appendkernelcmdline: arguments + collection-id: org.apertis.example Mandatory properties: @@ -44,6 +45,8 @@ action to the configured commandline. - tls-client-cert-path -- path to client certificate to use for the remote repository - tls-client-key-path -- path to client certificate key to use for the remote repository + +- collection-id -- Collection ID ref binding (require libostree 2018.6). */ package actions @@ -70,6 +73,7 @@ type OstreeDeployAction struct { AppendKernelCmdline string `yaml:"append-kernel-cmdline"` TlsClientCertPath string `yaml:"tls-client-cert-path"` TlsClientKeyPath string `yaml:"tls-client-key-path"` + CollectionID string `yaml:"collection-id"` } func NewOstreeDeployAction() *OstreeDeployAction { @@ -140,7 +144,9 @@ func (ot *OstreeDeployAction) Run(context *debos.DebosContext) error { /* FIXME: add support for gpg signing commits so this is no longer needed */ opts := ostree.RemoteOptions{NoGpgVerify: true, TlsClientCertPath: ot.TlsClientCertPath, - TlsClientKeyPath: ot.TlsClientKeyPath} + TlsClientKeyPath: ot.TlsClientKeyPath, + CollectionId: ot.CollectionID, + } err = dstRepo.RemoteAdd("origin", ot.RemoteRepository, opts, nil) if err != nil { |