INNER CODE UNIT · Go

runSelfBootstrap

kimdre/doco-cd · cmd/doco-cd/applyself.go:142

func runSelfBootstrap(ctx context.Context, log *logger.Logger, c *app.Config, dockerCli command.Cli) error {
	if len(c.PollConfig) == 0 {
		return errors.New("bootstrap needs POLL_CONFIG to know what to deploy")
	}

	notifier, err := notification.New(notification.Config{
		APIURL:                string(c.AppriseApiURL),
		NotifyURLs:            c.AppriseNotifyUrls,
		NotifyLevel:           c.AppriseNotifyLevel,
		BodyTemplate:          c.AppriseNotifyBodyTemplate,
		FailureRepeatInterval: c.AppriseNotifyRepeatInterval,
	})
	if err != nil {
		return fmt.Errorf("create the notifier: %w", err)
	}

	contexts := docker.NewContextRegistry(dockerCli, docker.ContextRegistryOptions{
		Quiet:         c.DockerQuietDeploy,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…