当尝试使用SLS在gcp上部署云功能时,我收到以下异常
{"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"Build failed: Build error details not available."}
解决方案是在.gitlab-ci.yml
中定义配置项运行的映像的特定版本,方法是在.gitlab-ci.yml
顶部指定以下键值:image:node:12-alpine
。