-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add packer config for builds triggered by public pull requests
This new config file is copied nearly verbatim from the existing one at `build/packer/teamcity-agent.json`, except the GCP project is changed. Release note: None
- Loading branch information
1 parent
1950fd6
commit 93489de
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"variables": { | ||
"image_id": "teamcity-agent-{{timestamp}}" | ||
}, | ||
|
||
"builders": [{ | ||
"type": "googlecompute", | ||
"project_id": "cockroach-teamcity-public-prs", | ||
"source_image_family": "ubuntu-1804-lts", | ||
"zone": "us-east1-b", | ||
"machine_type": "n1-standard-32", | ||
"image_name": "{{user `image_id`}}", | ||
"image_description": "{{user `image_id`}}", | ||
"ssh_username": "packer", | ||
"disk_size": 256, | ||
"disk_type": "pd-ssd", | ||
"state_timeout": "15m" | ||
}], | ||
|
||
"provisioners": [{ | ||
"type": "shell", | ||
"script": "teamcity-agent.sh", | ||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'" | ||
},{ | ||
"type": "file", | ||
"source": "filebeat/filebeat-agent.yml", | ||
"destination": "/tmp/filebeat.yml" | ||
}, | ||
{ | ||
"type": "shell", | ||
"script": "setup_filebeat_on_teamcity_agent.sh", | ||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'" | ||
}] | ||
} |