Skip to content

D-D-Studio/ago-ci-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AGO CI RPC

RPC Server for continuous integration

Table of Contents

Requirements

Rust (>=1.55.0)

Deployment

Local

  1. Build project: cargo build with environment variables.
  2. Start server: ./target/release/ago-ci-rpc.

Environment Variables

Environment Variable Description Example
CI_REPO URL to git repository with services https://git.site.com/user/ci.git
SECRET_TOKEN Secret token for authorization qwerty123

API

For all methods authorization is required.

Example:

Authorization: qwerty123

Update CI repository

GET /container/update

Update local git repository with services.

Example:

GET /contaner/update
Accept: application/json
Authorization: qwerty123

Deploy container

GET /container/{container-name}/deploy/{container-tag}

Deploy {contaner-name} container with {conatner-tag} tag.

Example:

GET /contaner/ago-backend/deploy/master
Accept: application/json
Authorization: qwerty123

Service Configuration Example

Example of {CI_REPO} structure:

├── ago-backend
│   ├── service.yml 

Example of ./ago-backend/service.yml:

version: '3.8'

services:
  ago-backend:
    image: registry.site.com/ago-backend:${CI_TAG}
    deploy:
      mode: replicated
      replicas: 1

About

RPC Server for continuous integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages