66 lines
1.3 KiB
JSON
66 lines
1.3 KiB
JSON
{
|
|
"builders": [
|
|
{
|
|
"type": "digitalocean",
|
|
"image": "ubuntu-24-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"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "tmp/do.ini",
|
|
"destination": "/tmp/do.ini"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "files/gitea-nginx.conf",
|
|
"destination": "/tmp/gitea-nginx.conf"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "files/certbot-renew.timer",
|
|
"destination": "/tmp/certbot-renew.timer"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "files/certbot-renew.service",
|
|
"destination": "/tmp/certbot-renew.service"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"script": "scripts/nginx.sh"
|
|
}
|
|
],
|
|
"post-processors": [
|
|
{
|
|
"type": "manifest"
|
|
}
|
|
]
|
|
}
|