Me perguntaram qual snippet
eu utiliza para deploy automático do HUGO, bom eu utilizo o padrão
dele
mesmo :)
Segue abaixo:
deployment:
targets:
- URL: 's3://<nome do bucket>?region=<região>'
exclude: .DS_Store
matchers:
- pattern: ^.+\.(js|css|svg|ttf)$
cacheControl: 'max-age=31536000, no-transform, public'
gzip: true
- pattern: ^.+\.(png|jpg)$
cacheControl: 'max-age=31536000, no-transform, public'
gzip: true
- pattern: ^sitemap\.xml$
contentType: application/xml
gzip: true
- pattern: ^.+\.(html|xml|json)$
gzip: true
No exemplo acima, eu estou utilizando o S3
da AWS
, e sobre os padrões de comportamento, eu estou utilizando os citados de exemplo na documentação, vide link acima e, posso dizer que eles funcionam muito bem com a Cloudflare シ
Para executar, basta rodar no shell
> hugo deploy
cya! 🎶🎶🎶
Todas Tags |
Cheats |
16
|
DevOps |
15
|
MacOS |
7
|
Shell |
6
|
Continuous Learning |
5
|
Automation |
4
|
Git |
4
|
Azure |
3
|
Managed Services |
3
|
Pensamentos |
3
|
PowerShell |
3
|
AppleScript |
2
|
Aws |
2
|
ITIL |
2
|
Microservices |
2
|
SRE |
2
|
Webserver |
2
|
Ansible |
1
|
Apple |
1
|
Billing |
1
|
Brokerage |
1
|
Cloud Computing |
1
|
CloudOps |
1
|
Containers |
1
|
Continuos Learning |
1
|
DevSecOps |
1
|
Docker |
1
|
Github |
1
|
Gitlab |
1
|
Google Script |
1
|
Hugo |
1
|
Internet |
1
|
Kubernetes |
1
|
1
|
Markdown |
1
|
Nginx |
1
|
Observabilidade |
1
|
OpenSSL |
1
|
PlatoformEngineer |
1
|
Proxy Pass |
1
|
Serverless |
1
|
Sysadmin |
1
|
Terraform |
1
|