-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker-shorebird-ios.pkr.hcl
75 lines (60 loc) · 1.36 KB
/
packer-shorebird-ios.pkr.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
variable "endpoint" {
type = string
}
variable "orka_user" {
type = string
}
variable "orka_password" {
type = string
sensitive = true
}
variable "vm_ssh_username" {
type = string
}
variable "vm_ssh_password" {
type = string
sensitive = true
}
variable "base_image" {
type = string
}
variable "image_name" {
type = string
}
variable "vm_cpu_number" {
type = number
}
variable "flutter_version" {
type = string
}
variable "cocoapod_version" {
type = string
}
variable "vm_builder_prefix" {
type = string
default = "ci-shorebird-image-vm-builder"
}
source "macstadium-orka" "image" {
source_image = "${var.base_image}"
image_name = "${var.image_name}"
orka_endpoint = "${var.endpoint}"
orka_user = "${var.orka_user}"
orka_password = "${var.orka_password}"
ssh_username = "${var.vm_ssh_username}"
ssh_password = "${var.vm_ssh_password}"
orka_vm_cpu_core = "${var.vm_cpu_number}"
orka_vm_builder_prefix = "${var.vm_builder_prefix}"
}
build {
sources = [
"macstadium-orka.image"
]
provisioner "shell" {
environment_vars = [
"FLUTTER_VERSION=${var.flutter_version}",
"COCOAPODS_VERSION=${var.cocoapod_version}",
"VM_SSH_PASSWORD=${var.vm_ssh_password}",
]
script = "bin/install-macstadium-shorebird"
}
}