diff --git a/publish.yaml b/publish.yaml index 2e65af1..540bbcc 100644 --- a/publish.yaml +++ b/publish.yaml @@ -3,25 +3,9 @@ Type: Application Name: fc-stable-diffusion Provider: - 阿里云 -Version: 0.0.1 -Description: 简短的描述/介绍 +Version: 0.0.2 +Description: 使用serverless devs将stable-diffusion部署到阿里云函数计算上 HomePage: 项目首页地址 Tags: #标签详情 - 部署函数 Category: Web框架 -Service: # 使用的服务 - 函数计算: # - # Runtime: Python 3.6 如果服务是函数,还需要增加Runtime - Authorities: #权限描述 - - 创建函数 # 所需要的权限 -Parameters: - type: object - additionalProperties: false # 不允许增加其他属性 - required: # 必填项 - - region - properties: - access: - title: 访问秘钥 - type: string - default: default - description: \ No newline at end of file diff --git a/src/s.yaml b/src/s.yaml index 860b468..d28af0b 100644 --- a/src/s.yaml +++ b/src/s.yaml @@ -1,6 +1,6 @@ edition: 1.0.0 name: fc-stable-diffusion -access: {{access}} +access: default vars: region: 'cn-shanghai' service: 'fc-stable-diffuson' @@ -59,7 +59,7 @@ services: component: fc actions: pre-deploy: - - run: npm i + - run: npm i --force path: ./code props: region: ${vars.region}