File tree Expand file tree Collapse file tree 6 files changed +44
-12
lines changed Expand file tree Collapse file tree 6 files changed +44
-12
lines changed Original file line number Diff line number Diff line change @@ -143,15 +143,20 @@ build {
143
143
]
144
144
provisioner "shell" {
145
145
environment_vars = []
146
- inline = concat ( [
146
+ inline = [
147
147
" sudo dnf upgrade-minimal -y" ,
148
148
" sudo dnf install -y amazon-cloudwatch-agent jq git docker" ,
149
149
" sudo dnf install -y --allowerasing curl" ,
150
150
" sudo systemctl enable docker.service" ,
151
151
" sudo systemctl enable containerd.service" ,
152
152
" sudo service docker start" ,
153
153
" sudo usermod -a -G docker ec2-user" ,
154
- ], var. custom_shell_commands )
154
+ ]
155
+ }
156
+
157
+ provisioner "shell" {
158
+ environment_vars = []
159
+ inline = var. custom_shell_commands
155
160
}
156
161
157
162
provisioner "file" {
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ build {
144
144
environment_vars = [
145
145
" DEBIAN_FRONTEND=noninteractive"
146
146
]
147
- inline = concat ( [
147
+ inline = [
148
148
" sudo cloud-init status --wait" ,
149
149
" sudo apt-get -y update" ,
150
150
" sudo apt-get -y install ca-certificates curl gnupg lsb-release" ,
@@ -161,7 +161,12 @@ build {
161
161
" sudo curl -f https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2.zip" ,
162
162
" unzip awscliv2.zip" ,
163
163
" sudo ./aws/install" ,
164
- ], var. custom_shell_commands )
164
+ ]
165
+ }
166
+
167
+ provisioner "shell" {
168
+ environment_vars = []
169
+ inline = var. custom_shell_commands
165
170
}
166
171
167
172
provisioner "file" {
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ build {
144
144
environment_vars = [
145
145
" DEBIAN_FRONTEND=noninteractive"
146
146
]
147
- inline = concat ( [
147
+ inline = [
148
148
" sudo cloud-init status --wait" ,
149
149
" sudo apt-get update" ,
150
150
" sudo apt-get -y install ca-certificates curl gnupg lsb-release" ,
@@ -161,7 +161,12 @@ build {
161
161
" sudo curl -f https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip -o awscliv2.zip" ,
162
162
" unzip awscliv2.zip" ,
163
163
" sudo ./aws/install" ,
164
- ], var. custom_shell_commands )
164
+ ]
165
+ }
166
+
167
+ provisioner "shell" {
168
+ environment_vars = []
169
+ inline = var. custom_shell_commands
165
170
}
166
171
167
172
provisioner "file" {
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ build {
144
144
environment_vars = [
145
145
" DEBIAN_FRONTEND=noninteractive"
146
146
]
147
- inline = concat ( [
147
+ inline = [
148
148
" sudo cloud-init status --wait" ,
149
149
" sudo apt-get -y update" ,
150
150
" sudo apt-get -y install ca-certificates curl gnupg lsb-release" ,
@@ -161,7 +161,12 @@ build {
161
161
" sudo curl -f https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2.zip" ,
162
162
" unzip awscliv2.zip" ,
163
163
" sudo ./aws/install" ,
164
- ], var. custom_shell_commands )
164
+ ]
165
+ }
166
+
167
+ provisioner "shell" {
168
+ environment_vars = []
169
+ inline = var. custom_shell_commands
165
170
}
166
171
167
172
provisioner "file" {
Original file line number Diff line number Diff line change @@ -108,12 +108,18 @@ build {
108
108
}
109
109
110
110
provisioner "powershell" {
111
- inline = concat ( [
111
+ inline = [
112
112
templatefile (" ./windows-provisioner.ps1" , {
113
113
action_runner_url = " https://github.com/actions/runner/releases/download/v${ local . runner_version } /actions-runner-win-x64-${ local . runner_version } .zip"
114
114
})
115
- ], var . custom_shell_commands )
115
+ ]
116
116
}
117
+
118
+ provisioner "powershell" {
119
+ environment_vars = []
120
+ inline = var. custom_shell_commands
121
+ }
122
+
117
123
post-processor "manifest" {
118
124
output = " manifest.json"
119
125
strip_path = true
Original file line number Diff line number Diff line change @@ -122,12 +122,18 @@ build {
122
122
}
123
123
124
124
provisioner "powershell" {
125
- inline = concat ( [
125
+ inline = [
126
126
templatefile (" ./windows-provisioner.ps1" , {
127
127
action_runner_url = " https://github.com/actions/runner/releases/download/v${ local . runner_version } /actions-runner-win-x64-${ local . runner_version } .zip"
128
128
})
129
- ], var . custom_shell_commands )
129
+ ]
130
130
}
131
+
132
+ provisioner "powershell" {
133
+ environment_vars = []
134
+ inline = var. custom_shell_commands
135
+ }
136
+
131
137
post-processor "manifest" {
132
138
output = " manifest.json"
133
139
strip_path = true
You can’t perform that action at this time.
0 commit comments