Skip to content

Deploy a private repository easily (without SSH) #91

Description

@rocksbrasil

Hello everyone, after a few tries, I have found an easy way to deploy your github applications without adding SSH keys, just adding the credentials of your Github account to the HTTPS address, and would like to share with the community, for example:

[GitHub] https://USERNAME:PASSWORD@github.com/username/repo-name.git

it will only be necessary to define in the project code, following example:

/**
 * The address of the remote Git repository that contains the code that's being
 * deployed.
 * If the repository is private, you'll need to use the SSH address.
 *
 * @var string
 */
define('REMOTE_REPOSITORY', 'https://USERNAME:PASSWORD@github.com/username/repo-name.git');

This method can also be used by repository collaborator accounts, making it easier for those who need to deploy the application to multiple servers without generating SSH keys.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions