Skip to content

Commit

Permalink
feat: added url in file azion.json
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwelbm committed May 8, 2024
1 parent d5a65e9 commit c1b9e02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/cmd/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,11 @@ func (cmd *DeployCmd) Run(f *cmdutil.Factory) error {
return err
}

conf.Domain.Url = utils.Concat("https://", domainName)
cmd.WriteAzionJsonContent(conf)

logger.FInfo(cmd.F.IOStreams.Out, msg.DeploySuccessful)
logger.FInfo(cmd.F.IOStreams.Out, fmt.Sprintf(msg.DeployOutputDomainSuccess, utils.Concat("https://", domainName)))
logger.FInfo(cmd.F.IOStreams.Out, fmt.Sprintf(msg.DeployOutputDomainSuccess, conf.Domain.Url))
logger.FInfo(cmd.F.IOStreams.Out, msg.DeployPropagation)
return nil

}
1 change: 1 addition & 0 deletions pkg/contracts/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ type AzionJsonDataOrigin struct {
type AzionJsonDataDomain struct {
Id int64 `json:"id"`
Name string `json:"name"`
Url string `json:"url"`
}

type AzionJsonDataPurge struct {
Expand Down

0 comments on commit c1b9e02

Please sign in to comment.