34 lines
820 B
Markdown
34 lines
820 B
Markdown
# WEB DEPLOY
|
|
|
|
Ce projet modèle est pour déployer son site web [hugo](https://gohugo.io/) via le CI/CD du garage
|
|
|
|
## CONFIGURATION
|
|
|
|
1. Placer son site web dans le dossier hugo/ :
|
|
```bash
|
|
├── Dockerfile
|
|
├── hugo
|
|
│ ├── content
|
|
│ │ ├── page1.html
|
|
│ │ ├── page2.html
|
|
│ │ └── page3.html
|
|
│ └── config.toml
|
|
└── README.md
|
|
```
|
|
|
|
2. Créer la branche deploy :
|
|
```bash
|
|
git checkout -b deploy
|
|
```
|
|
|
|
3. Pousser la branche deploy :
|
|
```bash
|
|
git push origin -u deploy
|
|
```
|
|
|
|
4. Le site est disponible à l'adresse https://username-nom_du_projet.legaragenumerique.xyz
|
|
|
|
exemple pour l'utilisateur greg avec un projet portfolio:
|
|
> https://greg-portfolio.legaragenumerique.xyz
|
|
|
|
:warning: Ne pas modifier la Dockerfile au risque que le projet ne soit pas déployé |