Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Adds .djinrc #26

Open
catks opened this issue Feb 15, 2021 · 2 comments
Open

[FEATURE] Adds .djinrc #26

catks opened this issue Feb 15, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@catks
Copy link
Owner

catks commented Feb 15, 2021

.djinrc will be loaded before any build command or task command, also some environment must be provisioned to enable executing specific tasks in each scenario, eg:

#!/bin/bash

case $DJIN_COMMAND_TYPE in
  build)
    # Some code here ...
    ;;

  task)
    # Some code here ...
    ;;
esac

With this some workarounds can be dropped, eg:

release:
    local:
      run:
        - (source ~/.zshrc || true)
        - verto tag up {{args}}
        - bundle exec rake release
@catks catks added the enhancement New feature or request label Feb 15, 2021
@catks catks added this to the 1.0.0 milestone Feb 15, 2021
@catks
Copy link
Owner Author

catks commented Feb 19, 2021

Also DJIN_TASK_TYPE

#!/bin/bash

case $DJIN_TASK_TYPE in
  local)
    # Some code here ...
    ;;

  docker)
    # Some code here ...
    ;;

  docker-compose)
    # Some code here ...
    ;;
esac

@catks
Copy link
Owner Author

catks commented Feb 19, 2021

If #28 is implemented DJIN_COMMAND_TYPE can be removed and the .djinrc can be loaded only once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant