Skip to content

Commit

Permalink
Added gitlab to be a part of the supported providers
Browse files Browse the repository at this point in the history
  • Loading branch information
danielm-codefresh committed Nov 28, 2021
1 parent 5f4bc7e commit 79408bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export GIT_REPO=https://github.com/owner/name?ref=gitops_branch

#### Using a Specific git Provider
You can add the `--provider` flag to the `repo bootstrap` command, to enforce using a specific provider when creating a new repository. If the value is not supplied, the code will attempt to infer it from the clone URL.
Autopilot currently support github and gitea as SCM providers.
Autopilot currently support github, gitlab and gitea as SCM providers.

All the following commands will use the variables you supplied in order to manage your GitOps repository.

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/argocd-autopilot_repo_bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ argocd-autopilot repo bootstrap [flags]
--installation-mode string One of: normal|flat. If flat, will commit the bootstrap manifests, otherwise will commit the bootstrap kustomization.yaml (default "normal")
--kubeconfig string Path to the kubeconfig file to use for CLI requests.
-n, --namespace string If present, the namespace scope for this CLI request
--provider string The git provider, one of: gitea|github
--provider string The git provider, one of: gitea|github|gitlab
--repo string Repository URL [GIT_REPO]
--request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
```
Expand Down
1 change: 1 addition & 0 deletions pkg/git/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ var (
var supportedProviders = map[string]func(*ProviderOptions) (Provider, error){
"github": newGithub,
"gitea": newGitea,
"gitlab": newGitlab,
}

// New creates a new git provider
Expand Down

0 comments on commit 79408bc

Please sign in to comment.