Categorygithub.com/ted-vo/provider-git
module
2.0.1+incompatible
Repository: https://github.com/ted-vo/provider-git.git
Documentation: pkg.go.dev

# README

:twisted_rightwards_arrows: provider-git

CI Go Report Card PkgGoDev

The git provider for 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.

{
    "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

NameDefault ValueDescription
default_branchmasterThe branch where deployments should happen.
tagger_namesemantic-releaseThe name of the user creating the tag.
tagger_email[email protected]The email address of the user creating the tag.
remote_nameThe name of the remote to push to.
auth(Depends on origin URL)The authentication type to use (basic, ssh)
auth_usernamegitThe name of the user to use for authentication.
auth_passwordThe password to use for basic auth or the SSH key.
auth_private_keyThe 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 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

The MIT License (MIT)

Copyright © 2020 Christoph Witzko

# Packages

No description provided by the author
No description provided by the author