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

Add job for deployment with ember-cli-deploy #4

Open
GreatWizard opened this issue Sep 18, 2018 · 2 comments
Open

Add job for deployment with ember-cli-deploy #4

GreatWizard opened this issue Sep 18, 2018 · 2 comments

Comments

@GreatWizard
Copy link
Owner

  • Detect ember-cli-deploy plugin
  • Add deploy job (filter to activate only on branch master by default)
@adambedford
Copy link

This would be great! We're looking now for the best way to move the build & deploy process from a local machine to a CI environment.

@GreatWizard
Copy link
Owner Author

GreatWizard commented Oct 14, 2020

If you already setup ember-cli-deploy, the job in CircleCI config can be defined like:

jobs:
  ## Add this Job
  deploy:
    <<: *defaults
    steps:
      - attach_workspace:
          at: .
      - run:
          name: Run Deploy
          command: yarn ember deploy production

workflows:
  version: 2
  test_and_deploy:
    jobs:
      ## Add this to the workflow
      - deploy:
          requires:
            - lint
            - test
            - test_lts_3_12
            - test_lts_3_16
            - test_lts_3_20
            - test_release
            - test_beta
            - test_canary
            - test_default_with_jquery
            - test_classic
          filters:
            branches:
              only:
                - master

I guess if I'm adding a deploy option it will generate theses line for you.
And then you have to adapt to which environement you are going to deploy and if you need more ember-cli-deploy options (coming from addons)

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

No branches or pull requests

2 participants