Skip to content

[Feature] Support repos in run configurations (and make dstack init optional) #2851

Closed

Description

@peterschmidt85

1. Introduce the repos property (similar to files)

repos:
  - .:/workflow

or

repos:
  - .

or

repos:
  - repo_path:  .
     path: .
     identity_key: ~/.ssh/id_rsa

or

repos:
  - repo_path:  .
    identity_key: ~/.ssh/id_rsa

or

repos:
  - repo_path:  .
    token: {env. GH_TOKEN}

Note, if the repo is remote, dstack will try to use the default Git credentials (as it does now) using ~/.config/gh/hosts.yml or ~/.ssh/id_rsa.

A repo path can be also a GitHub URL (as it's supported now):

repos:
  - repo_path:  https://github.com/huggingface/open-r1

or

repos:
  - https://github.com/huggingface/open-r1:/workflow

2. Introduce ssh_config.identity_file
3. Deprecate dstack init

Warning

For the first version, let's allow up to one repo. Should help limit changes while addressing the main UX issue.

Activity

  1. self-assigned this
    on Aug 8, 2025
  2. changed the title [-][Feature] Support `repos` in run configurations (and deprecate `dstack init`)[/-] [+][Feature] Support `repos` in run configurations (and make `dstack init` optional)[/+] on Aug 21, 2025
  3. added a commit that references this issue on Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions