Does working_directory for deploy steps work?


#1

I’m testing out Circle CI w/ a simple firebase app and have a deploy step as follows:

  - deploy:
      name: Deploy to Firebase
      working_directory: ~/app/src/client
      command: firebase deploy

I kept getting errors related to the path and had to modify it to be:

  - deploy:
      name: Deploy to Firebase
      working_directory: ~/app/src/client
      command: |
        cd src/client
        firebase deploy

Does working_directory not apply to deploy steps?

The docs say that deploy steps receive the same configuration as run steps.

Thanks!


#2

That’s intriguing. For science, can you try workDir instead of working_directory on that step? I’d like to open a bug with that information included.


#3

I gave it a shot but ended up with the same error:

  - deploy:
      name: Deploy to Firebase
      workDir: ~/app/src/client
      command: firebase deploy
#!/bin/bash -eo pipefail
firebase deploy

Error: Not in a Firebase app directory (could not locate firebase.json)
Exited with code 1

#5

This was reported internally. Thank you @gmeans.


#6

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.