Skip to content

Commit

Permalink
Add version in infra
Browse files Browse the repository at this point in the history
  • Loading branch information
jpraynaud committed Jun 2, 2023
1 parent 76a218c commit 899b54c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions mithril-infra/assets/infra.version
@@ -0,0 +1 @@
0.1.0
12 changes: 6 additions & 6 deletions mithril-infra/mithril.bootstrap.tf
Expand Up @@ -12,6 +12,11 @@ resource "null_resource" "mithril_bootstrap" {
vm_instance = google_compute_instance.vm_instance.id
}

provisioner "file" {
source = "assets/infra.version"
destination = "/home/curry/infra.version"
}

provisioner "file" {
source = "assets/docker"
destination = "/home/curry"
Expand All @@ -33,12 +38,7 @@ done
echo "Startup script complete!"
EOT
,
"find /home/curry/tools -name '*.sh' -type f | xargs chmod u+x",
<<-EOT
if [[ ! -f '/home/curry/docker/cardano-configurations' ]] ; then
git clone https://github.com/input-output-hk/cardano-configurations.git /home/curry/docker/cardano-configurations
fi
EOT
"find /home/curry/tools -name '*.sh' -type f | xargs chmod u+x"
]
}
}

0 comments on commit 899b54c

Please sign in to comment.