diff --git a/DOCS.md b/DOCS.md index 761c245..2973daa 100644 --- a/DOCS.md +++ b/DOCS.md @@ -93,7 +93,7 @@ steps: - username: octocat - password: superSecretPassword path: /home/go-vela_vela-git-test_1 - ref: refs/heads/master + ref: refs/heads/main remote: https://github.com/go-vela/vela-git-test.git sha: ee1e671529ad86a11ed628a04b37829e71783682 ``` @@ -142,13 +142,13 @@ The following parameters are used to configure the image: | Name | Description | Required | Default | Environment Variables | |--------------|-----------------------------------------| -------- |---------------------|-----------------------------------------------------------------------------------------| -| `branch` | initial branch to clone from repository | `true` | `main` | `PARAMETER_BRANCH`
`GIT_BRANCH`
`VELA_PULL_REQUEST_SOURCE`
`VELA_BUILD_BRANCH` | +| `branch` | initial branch to clone from repository | `true` | `master` | `PARAMETER_BRANCH`
`GIT_BRANCH`
`VELA_PULL_REQUEST_SOURCE`
`VELA_BUILD_BRANCH` | | `log_level` | set the log level for the plugin | `true` | `info` | `PARAMETER_LOG_LEVEL`
`GIT_LOG_LEVEL` | | `machine` | machine name to communicate with | `true` | `github.com` | `PARAMETER_MACHINE`
`GIT_MACHINE`
`VELA_NETRC_MACHINE` | | `password` | password for authentication | `true` | **set by Vela** | `PARAMETER_PASSWORD`
`GIT_PASSWORD`
`VELA_NETRC_PASSWORD` | | `username` | user name for authentication | `true` | **set by Vela** | `PARAMETER_USERNAME`
`GIT_USERNAME`
`VELA_NETRC_USERNAME` | | `path` | local path to clone repository to | `true` | **set by Vela** | `PARAMETER_PATH`
`GIT_PATH`
`VELA_BUILD_WORKSPACE` | -| `ref` | reference generated for commit | `true` | `refs/heads/main` | `PARAMETER_REF`
`GIT_REF`
`VELA_BUILD_REF` | +| `ref` | reference generated for commit | `true` | `refs/heads/master` | `PARAMETER_REF`
`GIT_REF`
`VELA_BUILD_REF` | | `remote` | full url for cloning repository | `true` | **set by Vela** | `PARAMETER_REMOTE`
`GIT_REMOTE`
`VELA_REPO_CLONE` | | `sha` | SHA-1 hash generated for commit | `true` | **set by Vela** | `PARAMETER_SHA`
`GIT_SHA`
`VELA_BUILD_COMMIT` | | `submodules` | enables fetching of submodules | `false` | `false` | `PARAMETER_SUBMODULES`
`GIT_SUBMODULES` | diff --git a/cmd/vela-git/main.go b/cmd/vela-git/main.go index 3e1f87f..15f8ae2 100644 --- a/cmd/vela-git/main.go +++ b/cmd/vela-git/main.go @@ -69,7 +69,7 @@ func main() { FilePath: "/vela/parameters/git/branch,/vela/secrets/git/branch", Name: "build.branch", Usage: "the repo branch for the build used during git init", - Value: "main", + Value: "master", }, &cli.StringFlag{ EnvVars: []string{"PARAMETER_SHA", "GIT_SHA", "VELA_BUILD_COMMIT"}, @@ -88,7 +88,7 @@ func main() { FilePath: "/vela/parameters/git/ref,/vela/secrets/git/ref", Name: "build.ref", Usage: "commit reference to clone from the repo", - Value: "refs/heads/main", + Value: "refs/heads/master", }, &cli.StringFlag{ EnvVars: []string{"PARAMETER_DEPTH", "GIT_DEPTH"},