Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/cmd/mirror_repo.go
2498 views
1
// Copyright (c) 2024 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package cmd
6
7
import (
8
"fmt"
9
10
"github.com/gitpod-io/gitpod/installer/pkg/config"
11
"github.com/spf13/cobra"
12
)
13
14
// mirrorRepoCmd represents the mirror list command
15
var mirrorRepoCmd = &cobra.Command{
16
Use: "repo",
17
Short: "Get original image repo for this installer",
18
RunE: func(cmd *cobra.Command, args []string) error {
19
fmt.Print(config.GitpodContainerRegistry)
20
return nil
21
},
22
}
23
24
func init() {
25
mirrorCmd.AddCommand(mirrorRepoCmd)
26
}
27
28