https://github.com/profcomff/cicd-api
API для автоматизации процесса деплоя сервисов Твой ФФ
https://github.com/profcomff/cicd-api
devtools
Last synced: 7 months ago
JSON representation
API для автоматизации процесса деплоя сервисов Твой ФФ
- Host: GitHub
- URL: https://github.com/profcomff/cicd-api
- Owner: profcomff
- License: bsd-3-clause
- Created: 2023-02-08T09:01:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-07T14:59:38.000Z (over 2 years ago)
- Last Synced: 2023-10-07T15:38:16.542Z (over 2 years ago)
- Topics: devtools
- Language: Python
- Homepage:
- Size: 46.9 KB
- Stars: 10
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ci-api
API для запуска CI тасков на серверах.
Для использования сделайте запрос следующего вида по адресу, на котором настроено CI API для вашего сервера
[
](https://easycode.profcomff.com/templates/docker-fastapi/workspace?mode=manual¶m.Repository+URL=https://github.com/profcomff/cicd-api.git¶m.Working+directory=cicd-api)
```
curl -X 'POST' \
'https://ci.api.profcomff.com/{action}' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: token {token}' \
-d '{
"repo_url": "string",
"commit_hash": "string"
}'
```
## Запуск
На проде запуск производится через Docker Compose
```docker-compose
version: '3'
services:
ci-api:
image: ghcr.io/profcomff/ci-api:latest
restart: always
environment:
- AUTH_URL=https://auth.api.profcomff.com/
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
web:
aliases:
- ci_api
networks:
web:
external: true
name: web
```
## ENV-file description
`AUTH_URL` – url корня API авторизации профкома, по умолчанию `https://auth.api.test.profcomff.com/`