42 lines
766 B
JSON
42 lines
766 B
JSON
{
|
|
"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"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"script": "scripts/volume.sh"
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|