samson icon indicating copy to clipboard operation
samson copied to clipboard

Get project configuration from a ".samson.yml"

Open xakraz opened this issue 11 years ago • 6 comments
trafficstars

It could be great to be able to define the stages and associated commands to run from a YML files like travis and co...

deploy:

  stages:
    demo:
      command:
      permalink:
      confirm:
      e-mail:
...

Sansom will

  • clone the project
  • Get and parse the .samson.yml
  • Identify and create the different stages / commands

xakraz avatar Nov 10 '14 16:11 xakraz

you could set up a rake task that deletes everything and sets it up by reading samson.yml

grosser avatar Mar 10 '15 00:03 grosser

@grosser : Yes, or have it that way as every good product do : Descriptive and version controlled among the project source :)

xakraz avatar Apr 24 '15 04:04 xakraz

I was suggesting to check in the samson.yml and then have a rake task delete all existing commands and fill the commands from the yml file, would that work ?

grosser avatar Apr 24 '15 15:04 grosser

Yes for sure, let's try that and make it evolve later if needed.

Do you want me to do that or some body of the samson Team will take it ? Because I am kind a nooby in development, but I will be glad to have some directions and try :)

xakraz avatar Apr 24 '15 17:04 xakraz

You should give it a try :)

grosser avatar Apr 24 '15 18:04 grosser

I've started working on a project that allows you to build up your projects / stages / commands from yaml using Ansible. It's still a work in progress, but projects, stages and commands seem to work OK. Programming around the Samson API is tricky because it's not restful and not all endpoints support JSON. It might be useful to you if you're still using Samson.

https://github.com/danihodovic/ansible-samson

danihodovic avatar Feb 10 '19 13:02 danihodovic