Skip to content

Commit

Permalink
build: add packer config for builds triggered by public pull requests
Browse files Browse the repository at this point in the history
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
rickystewart committed Jan 4, 2021
1 parent 1950fd6 commit 93489de
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions build/packer/teamcity-agent-public-prs.json
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 }}'"
}]
}

0 comments on commit 93489de

Please sign in to comment.