-
Notifications
You must be signed in to change notification settings - Fork 8
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
wip: basic test for peerpods #990
base: burgerdev/pp-test-base
Are you sure you want to change the base?
Conversation
f06eefc
to
b8abf02
Compare
export azure_resource_group=contrast-ci | ||
export azure_location=germanywestcentral |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these values come from repository vars?
@@ -201,7 +200,7 @@ create platform=default_platform: | |||
echo "subscription_id = \"$azure_subscription_id\"" >> infra/azure-peerpods/just.auto.tfvars | |||
|
|||
nix run -L .#terraform -- -chdir=infra/azure-peerpods init | |||
nix run -L .#terraform -- -chdir=infra/azure-peerpods apply | |||
nix run -L .#terraform -- -chdir=infra/azure-peerpods apply --auto-approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Credit @jmxnzo
true || nix run -L .#scripts.upload-image -- \ | ||
--subscription-id="${azure_subscription_id:?}" \ | ||
--location="${azure_location:?}" \ | ||
--resource-group="${azure_resource_group:?}" | ||
image_id=/subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/contrast-ci/providers/Microsoft.Compute/galleries/contrast_ci_contrast/images/contrast/versions/0.0.1730981348 | ||
echo "image_id = \"${image_id}\"" > infra/azure-peerpods/image_id.auto.tfvars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make building the image optional by allowing an override input image id.
tenant_id = "${azure_tenant_id:?}" | ||
client_id = "${azure_client_id:?}" | ||
client_secret = "${azure_client_secret:?}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be justfile.env
vars?
e9dcaf9
to
0aa7546
Compare
echo "image_id = \"${image_id}\"" > infra/azure-peerpods/image_id.auto.tfvars | ||
|
||
cat >infra/azure-peerpods/testrun.auto.tfvars <<EOF | ||
name_prefix = "${azure_resource_group:?}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be randomized.
No description provided.