Adapter between Learning Management System and GitLab
- Create repository
- Delete repository
- Verify that the latest build in the repository was successful
- HTTP server
- Command Line Interface
GET http://{{host}}/health
All necessary configs you can put to config/application.yaml
file
Or put like environment variables with prefix GA_
Or put on command line parameters
gitlab:
host: "https://gitlab.com"
token: "change-me"
export GA_GITLAB_HOST="https://gitlab.com"
export GA_GITLAB_TOKEN="change-me"
gitlab-adapter start-server --gitlab.host "https://gitlab.com" --gitlab.token "change-me"
gitlab-adapter create-repo --namespace 1234567890 --name test-name --path test-path --description "Description repo"
POST http://{{host}}/api/v1/project
gitlab-adapter delete-repo --project-id 1000000000
DELETE http://{{host}}/api/v1/project
gitlab-adapter verify-pipeline --project-id 1000000000
- Return status 0 - success
- Return status 1 - failed
POST http://{{host}}/api/v1/project/verify-pipeline
- Return status 204 - success
- Return status 409 - failed
make build
make clean
make start-server
docker image build --tag IMAGE_NAME .
docker container run --publish 8080:8080 --volume ./config/:/app/config/ ghcr.io/ai-lenok/gitlab-adapter:main
docker-compose up --detach
kubectl apply --filename manifest/
kubectl delete --filename manifest/