Skip to content

Kunniii/yaml-converter-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YAML Converter API

This project is to have a API to convert drone.ci yaml workflow format into woodpecker-ci one.

How this work?

Run this project using Docker.

Make a post request to localhost:port/convert.

The port is your mapped port in docker-compose.yaml. Default port is 80.

The post data should look like this

{
    "configs": [
    {
      "name": ".woodpecker.yaml",
      "data": "kind: pipeline\ntype: docker\nname: frontend\n\nsteps:\n  - name: frontend\n    image: node\n    commands:\n      - npm install\n      - npm test\n"
    }
  ]
}

The return data is your woodpecker-ci yaml.

{
  "configs": [
    {
      "name": ".woodpecker.yaml",
      "data": "pipeline:\n  frontend:\n    commands:\n    - npm install\n    - npm test\n    image: node\n"
    }
  ]
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published