serverless / github-action

:zap::octocat: A Github Action for deploying with the Serverless Framework
Apache License 2.0
662 stars 173 forks source link

Updating to v2.18.0 breaks recommended plugin install #52

Closed nevins-b closed 3 years ago

nevins-b commented 3 years ago

the recommended setup from #28 no longer works due to bash missing in the image

docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown.
what1s1ove commented 3 years ago

Is there any way I can fix this?

In case if you want to use the old version

- name: Serverless Deploy
  uses: serverless/github-action@v2.17.1
nevins-b commented 3 years ago

~adding RUN apk add bash should install bash into this container and allow this to continue to work~

changing the entrypoint is better solution

anandg112 commented 3 years ago

or you can use the entrypoint as: entrypoint: /bin/sh

as the new base image is alpine