Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
provider-git
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
go-semantic-release
provider-git
Commits
a28069e8
Unverified
Commit
a28069e8
authored
3 years ago
by
James Durand
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
docs: added usage documentation to readme (#3)
parent
ae35b20a
Branches
instance-annotation
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+64
-0
64 additions, 0 deletions
README.md
with
64 additions
and
0 deletions
README.md
+
64
−
0
View file @
a28069e8
...
@@ -5,6 +5,70 @@
...
@@ -5,6 +5,70 @@
The git provider for
[
go-semantic-release
](
https://github.com/go-semantic-release/semantic-release
)
.
The git provider for
[
go-semantic-release
](
https://github.com/go-semantic-release/semantic-release
)
.
This plugin will make sure that the continuous integration environment
conditions are met. Namely that the release is happening on the
correct branch.
## Usage
To use this plugin you need to include the following block in your
`.semrelrc`
file.
```
json
{
"plugins"
:
{
"provider"
:
{
"name"
:
"git"
,
//
Options
can
be
omitted
if
you
want
to
use
the
defaults.
//
See
the
section
on
configuration
below.
"options"
:
{
//
Put
configuration
options
here
}
}
}
}
```
### Configuration
| Name | Default Value | Description |
|:----------------:|:---------------------------:|:--------------------------------------------------:|
| default_branch | master | The branch where deployments should happen. |
| tagger_name | semantic-release | The name of the user creating the tag. |
| tagger_email | git@go-semantic-release.xyz | The email address of the user creating the tag. |
| remote_name | | The name of the remote to push to. |
| auth |
*(Depends on origin URL)*
| The authentication type to use (basic, ssh) |
| auth_username | git | The name of the user to use for authentication. |
| auth_password | | The password to use for basic auth or the SSH key. |
| auth_private_key | | The path to an SSH private key file. |
| git_path | . | The path to the Git repository |
### Authentication
#### Automatic
If you don't pick a specific authentication mechanism then an
authentication mechanism will be picked based on the URL of the Git
remote. Under the covers
[
go-git
](
https://pkg.go.dev/github.com/go-git/go-git
)
is responsible for determining how to perform this kind of
authentication.
#### Basic
Basic authentication uses a username and password pair to perform
authentication over HTTP/HTTPS.
For this method you'll need to set
`auth_username`
and
`auth_password`
.
#### SSH
SSH authentication uses an SSH private key to authenticate with the
Git remote ove ran SSH connection.
For this method you'll need to set
`auth_username`
and
`auth_private_key`
. If your private key uses a password then you'll
also need to set
`auth_password`
.
## Licence
## Licence
The
[
MIT License (MIT)
](
http://opensource.org/licenses/MIT
)
The
[
MIT License (MIT)
](
http://opensource.org/licenses/MIT
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment