doc: begin cicd setup md
This commit is contained in:
29
doc/adr/03_cicd_gitea_action_argocd.md
Normal file
29
doc/adr/03_cicd_gitea_action_argocd.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# [Bases](./README.md)
|
||||
|
||||
|
||||
## Gitea Action
|
||||
|
||||
### Commande pour executer en local les workflows dans un projet gitea
|
||||
|
||||
`docker run -w /arcodange/code -v /var/run/docker.sock:/var/run/docker.sock -v "$PWD":/arcodange/code --rm -it --entrypoint='' --name gitea_runner gitea/act_runner:latest act_runner exec`
|
||||
|
||||
#### Exemple:
|
||||
|
||||
```sh
|
||||
$> docker run -w /arcodange/code -v "$PWD":/arcodange/code --rm -it --entrypoint='' --name gitea_runner gitea/act_runner:latest act_runner exec --list
|
||||
|
||||
INFO[0000] Preparing plan with all jobs
|
||||
Stage Job ID Job name Workflow name Workflow file Events
|
||||
0 Explore-Gitea-Actions Explore-Gitea-Actions Gitea Actions Demo dockerimage.yaml push
|
||||
|
||||
$> docker run -w /arcodange/code -v /var/run/docker.sock:/var/run/docker.sock -v "$PWD":/arcodange/code --rm -it --entrypoint='' --name gitea_runner gitea/act_runner:latest act_runner exec -j "Explore-Gitea-Actions"
|
||||
|
||||
INFO[0000] Using the only detected workflow event: push
|
||||
INFO[0000] Planning job: Explore-Gitea-Actions
|
||||
INFO[0000] cache handler listens on: http://172.17.0.3:37319
|
||||
INFO[0000] Start server on http://172.17.0.3:34567
|
||||
[Gitea Actions Demo/Explore-Gitea-Actions] 🚀 Start image=gitea/runner-images:ubuntu-latest
|
||||
...
|
||||
```
|
||||
|
||||
## Argo CD
|
||||
@@ -8,8 +8,11 @@
|
||||
- [x] setup volume, nfs, k8s provisioner
|
||||
- [x] setup postgres
|
||||
- [x] setup gitea
|
||||
- [ ] setup mail alert
|
||||
- [ ] setup gitea runners, Argo CD
|
||||
- [x] setup mail alert
|
||||
- [ ] [setup gitea runners, Argo CD](./03_cicd_gitea_action_argocd.md)
|
||||
- [x] sync git repo with github/gitlab
|
||||
- [ ] docker hub
|
||||
- [ ] gitea packages
|
||||
- [ ] setup hello world web app
|
||||
|
||||
> [!NOTE]
|
||||
|
||||
Reference in New Issue
Block a user