48 lines
957 B
JSON
48 lines
957 B
JSON
{
|
|
"variables": {
|
|
"token": "{{env `DIGITALOCEAN_TOKEN`}}",
|
|
"image_name": "appsmith-marketplace-snapshot-{{timestamp}}"
|
|
},
|
|
"builders": [
|
|
{
|
|
"type": "digitalocean",
|
|
"api_token": "{{user `token`}}",
|
|
"image": "ubuntu-20-04-x64",
|
|
"region": "blr1",
|
|
"size": "s-1vcpu-1gb",
|
|
"ssh_username": "root",
|
|
"snapshot_name": "{{user `image_name`}}"
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"type": "shell",
|
|
"inline": [
|
|
"cloud-init status --wait"
|
|
]
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "files/etc/",
|
|
"destination": "/etc/"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "files/var/",
|
|
"destination": "/var/"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts": ["scripts/install-docker.sh"]
|
|
},
|
|
|
|
{
|
|
"type": "shell",
|
|
"scripts": [
|
|
"scripts/01-packages.sh",
|
|
"scripts/90-cleanup.sh",
|
|
"scripts/99-img_check.sh"
|
|
]
|
|
}
|
|
]
|
|
} |