We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It'd be slick to implement the concepts from https://determinate.systems/posts/hydra-deployment-source-of-truth in Terraform.
Specifically:
data "hydra_job" data "hydra_job_aggregate_constituent"
data "hydra_job"
data "hydra_job_aggregate_constituent"
Deploying from a job:
data "hydra_job" "latest_myapp" { project = "myapp" jobset = "main" job = "myapp" wait_for_all_jobs = true # latest-successful ... consider a better name? } resource "aws_instance" "web" { # ... provisioner "remote-exec" { command = "nix-env -p /nix/var/nix/profiles/myapp --set '${data.hydra_job.latest_myapp.outputs.out.path}'" } }
Deploy the constituent of an aggregate job:
data "hydra_job_aggregate_constituent" "serverconfig" { project = "myapp" jobset = "main" job = "release_gate" constituent = "serverconfig" wait_for_all_jobs = true } resource "aws_instance" "web" { # ... provisioner "remote-exec" { inline = [ "nix-env --profile /nix/var/nix/profiles/system --set '${data.hydra_job_aggregate_constituent.serverconfig.outputs.out.path}'", "/nix/var/nix/profiles/system/bin/switch-to-configuration switch", ] } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
It'd be slick to implement the concepts from https://determinate.systems/posts/hydra-deployment-source-of-truth in Terraform.
Specifically:
New or Affected Resource(s)
data "hydra_job"
data "hydra_job_aggregate_constituent"
Potential Terraform Configuration
Deploying from a job:
Deploy the constituent of an aggregate job:
References
The text was updated successfully, but these errors were encountered: