Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created December 16, 2020 16:37
Show Gist options
  • Save bharatmicrosystems/90cbef8dc336417905c0af27924b63cb to your computer and use it in GitHub Desktop.
Save bharatmicrosystems/90cbef8dc336417905c0af27924b63cb to your computer and use it in GitHub Desktop.
{
"builders": [
{
"type": "googlecompute",
"account_file": "credentials.json",
"project_id": "<GCP_PROJECT_NAME>",
"zone": "europe-west2-a",
"source_image_family": "ubuntu-1604-lts",
"ssh_username": "packer",
"image_name": "nginx-{{timestamp}}",
"image_family": "webserver"
}
],
"provisioners": [
{
"type": "file",
"source": "./index.html",
"destination": "/tmp/index.html"
},
{
"type": "shell",
"script": "setup.sh"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment