Created
December 16, 2020 16:37
-
-
Save bharatmicrosystems/90cbef8dc336417905c0af27924b63cb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| { | |
| "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