Serverless Devs is an open-source Serverless developer platform. Through this platform, developers can not only experience multi-cloud Serverless products with one-click, deploy Serverless projects rapidly, but also manage projects throughout the entire Serverless application lifecycle. It is also easy and fast to integrate Serverless Devs with other tools/platforms, further enhancing development and operational efficiency.
The environment image is based on node:22-alpine and comes with npm installed, as well as the npm package @serverless-devs/s. The image has a smaller footprint compared to directly using node:16, as mentioned in the Serverless Devs CICD documentation.
Update serverless functions in cloud platforms:
main:
push:
- stages:
- name: serverless deploy
image: tencentcom/serverless-devs
imports: https://cnb.cool/xxx/xxx/-/blob/main/secret.yml
script: |
s config add --AccessKeyID ${AccessKeyID} --AccessKeySecret ${AccessKeySecret} -a default -f
s deploy -y --use-local
AccessKeyID: xxx
AccessKeySecret: xxx