Git

Git targets in Buddy allow you to connect to Git repositories for deployment, synchronization, and code management purposes. These connections can be used across pipelines based on their configured scope.

Adding a new Git target

  1. Navigate to the targets tab.
  2. Click the New target button and select Git from the dropdown menu.

Image loading...Adding new Git target

Configuring Git target

After selecting Git, you'll see a configuration form with the following options:

Basic information

Image loading...Creating a new target

  • Name/ID: A unique identifier for the target (e.g., id_yml)
  • Name: A descriptive name for the target (e.g., My Git Target)
  • Scope: Determines which pipelines can access this target. Available scopes are: Workspace, Project, Pipeline, Environment

Repository information

  • Repository URL: The Git repository address (e.g., https://github.com/example/my-repo)

Authentication options

Git targets support multiple authentication methods:

  • Inline password: Username and password authentication
    • Username: Your Git account username
    • Password: Your Git account password (required)
  • Inline SSH key: Authentication using a manually entered SSH key
    • Private SSH key contents: The SSH key used to establish a secure connection
  • SSH key from Variables, Keys & Assets: Using a stored SSH key
    • SSH key: Select from available keys (e.g., id_workspace)
    • Fingerprint: Displays the key fingerprint for verification

Additional options

  • Tags: Optional tags for organizing and filtering targets
  • Status: Option to disable the target temporarily

Importing YAML configuration

You can import target configuration using YAML

From Git repository

Image loading...Importing YAML configuration

  1. Select the Import YAML option
  2. Choose the From Git tab
  3. Select scope, project, and branch
  4. Enter the YAML path (e.g., .buddy/target.fixed.yml)
  5. Click Import target

Using inline YAML

Image loading...Importing using inline YAML

  1. Select the Import YAML option
  2. Choose the Inline YAML tab
  3. Paste your YAML configuration or upload from your device
  4. Optionally provide a salt for encrypted secrets
  5. Click Import target
Hint
Imported targets are appended to those that already exist in the project.

Last modified on May 9, 2025