leopardslab / dunner

Dunner is a task runner tool like Grunt but used Docker images like CircleCI do. You can define tasks and steps of the tasks in your `.dunner.yaml` file and then run these steps with `Dunner do taskname`
MIT License
66 stars 41 forks source link

Parse environment variables referred in dunner step dir, name and mounts #160

Closed apoorvam closed 5 years ago

apoorvam commented 5 years ago

Fixes #142

If there are environment variables referred in step as below, all of them will be referenced from env.

status:
    steps:
      - image: golang:1.11-alpine3.8
        user: "`$NAME`"
        dir: "`$HOME`"
        commands:
          - ["ls", "-al"]
          - ["pwd"]
          - ["cat", "/tmp/hello.md"]
        mounts:
          - "/tmp/`$dir`:/tmp:r"
codecov-io commented 5 years ago

Codecov Report

Merging #160 into restructure will increase coverage by 1.16%. The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff               @@
##           restructure     #160      +/-   ##
===============================================
+ Coverage         75.1%   76.26%   +1.16%     
===============================================
  Files                9        9              
  Lines              719      729      +10     
===============================================
+ Hits               540      556      +16     
+ Misses             110      107       -3     
+ Partials            69       66       -3
Impacted Files Coverage Δ
pkg/config/config.go 80.68% <100%> (+3.25%) :arrow_up:
pkg/dunner/dunner.go 69.01% <100%> (+0.66%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f327c99...fb2e241. Read the comment docs.

agentmilindu commented 5 years ago

@ayushjn20 @PratikDhanave @rehrumesh Please review