doc: begin cicd setup md

This commit is contained in:
2024-08-18 12:02:16 +02:00
parent aaaee3066a
commit 80fa4ca92f
2 changed files with 34 additions and 2 deletions

View 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