2021-01-22 23:22:13 +00:00
|
|
|
{
|
|
|
|
"builders": [
|
|
|
|
{
|
|
|
|
"type": "digitalocean",
|
|
|
|
"image": "ubuntu-20-04-x64",
|
|
|
|
"region": "nyc1",
|
|
|
|
"size": "s-1vcpu-1gb",
|
|
|
|
"snapshot_name": "packer-gitea-{{timestamp}}",
|
|
|
|
"ssh_username": "root"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"provisioners": [
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"script": "scripts/dependencies.sh"
|
|
|
|
},
|
2021-01-25 22:56:15 +00:00
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"script": "scripts/volume.sh"
|
|
|
|
},
|
2021-01-22 23:22:13 +00:00
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "files/app.ini",
|
|
|
|
"destination": "/tmp/app.ini"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "files/gitea.service",
|
|
|
|
"destination": "/tmp/gitea.service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"script": "scripts/gitea.sh"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"post-processors": [
|
|
|
|
{
|
|
|
|
"type": "manifest"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|