2021-01-22 23:22:13 +00:00
|
|
|
{
|
|
|
|
"builders": [
|
|
|
|
{
|
|
|
|
"type": "digitalocean",
|
2024-08-17 17:50:23 +00:00
|
|
|
"image": "ubuntu-24-04-x64",
|
2021-01-22 23:22:13 +00:00
|
|
|
"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"
|
2024-01-15 05:39:01 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
2021-01-22 23:22:13 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"post-processors": [
|
|
|
|
{
|
|
|
|
"type": "manifest"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|