Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Service and Source connection (both source repo and docker image) #21

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/resources/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ resource "railway_service" "example" {
- `config_path` (String) Path to the Railway config file. Conflicts with `source_image`.
- `cron_schedule` (String) Cron schedule of the service.
- `root_directory` (String) Directory to user for the service. Conflicts with `source_image`.
- `source_image` (String) Source image of the service. Conflicts with `source_repo`, `root_directory` and `config_path`.
- `source_image` (String) Source image of the service. Conflicts with `source_repo`, `source_repo_branch`, `root_directory` and `config_path`.
- `source_repo` (String) Source repository of the service. Conflicts with `source_image`.
- `source_repo_branch` (String) Source repository branch to be used with `source_repo`. Must be specified if `source_repo` is specified.
- `volume` (Attributes) Volume connected to the service. (see [below for nested schema](#nestedatt--volume))

### Read-Only
Expand Down
239 changes: 225 additions & 14 deletions internal/provider/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions internal/provider/resource_environment.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ query getEnvironments($projectId: String!) {
}
}

# @genqlient(for: "EnvironmentCreateInput.sourceEnvironmentId", omitempty: true, pointer: true)
mutation createEnvironment(
$input: EnvironmentCreateInput!
) {
Expand Down