-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge branch 'master' into releases
- Loading branch information
Showing
39 changed files
with
1,246 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
VERSION 0.8 | ||
|
||
# This target exists solely for validating the root Earthfile is scanned | ||
test: | ||
FROM ubuntu:latest | ||
|
||
RUN echo "Testing" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package deploy | ||
|
||
type DeployCmd struct { | ||
Push PushCmd `cmd:"" help:"Pushes a project deployment to the GitOps repo."` | ||
Template TemplateCmd `cmd:"" help:"Generates a project's deployment YAML."` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package deploy | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/input-output-hk/catalyst-forge/cli/pkg/deployment" | ||
"github.com/input-output-hk/catalyst-forge/cli/pkg/run" | ||
) | ||
|
||
type TemplateCmd struct { | ||
Project string `arg:"" help:"The path to the project." kong:"arg,predictor=path"` | ||
} | ||
|
||
func (c *TemplateCmd) Run(ctx run.RunContext) error { | ||
project, err := ctx.ProjectLoader.Load(c.Project) | ||
if err != nil { | ||
return fmt.Errorf("could not load project: %w", err) | ||
} | ||
|
||
bundle, err := deployment.GenerateBundle(&project) | ||
if err != nil { | ||
return fmt.Errorf("could not generate bundle: %w", err) | ||
} | ||
|
||
templater, err := deployment.NewDefaultBundleTemplater(ctx.Logger) | ||
if err != nil { | ||
return fmt.Errorf("could not create bundle templater: %w", err) | ||
} | ||
|
||
out, err := templater.Render(bundle) | ||
if err != nil { | ||
return fmt.Errorf("could not render bundle: %w", err) | ||
} | ||
|
||
fmt.Println(out) | ||
|
||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.