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

if there is no git user, using ${git:user} kills the deploy #103

Open
xytxytxyt opened this issue Mar 11, 2024 · 0 comments
Open

if there is no git user, using ${git:user} kills the deploy #103

xytxytxyt opened this issue Mar 11, 2024 · 0 comments

Comments

@xytxytxyt
Copy link

sls deploy worked fine manually with ${git:user}

but we're trying to automate it, and we are using an ssh key instead of a user for git clone etc

however, when there is no user, the deploy process dies completely with

Error:
Cannot resolve serverless.yaml: Variables resolution errored with:
  - Cannot resolve variable at "functions.resampler.tags.LastDeployedBy": Error: Command failed: git config user.name

    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:517:28)
    at ChildProcess.emit (node:domain:489:12)
    at maybeClose (node:internal/child_process:1098:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:517:28)
    at Socket.emit (node:domain:489:12)
    at Pipe.<anonymous> (node:net:351:12)

Exited with code exit status 1

maybe it could put an empty string or 'null' or something for the git user in this scenario? or at least not kill the deploy?

Running "serverless" from node_modules
Framework Core: 3.25.1 (local) 3.1.0 (global)
Plugin: 6.2.2
SDK: 4.3.2
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

1 participant