SCF(Serverless Cloud Function)
SCF CLI is a command-line tool for Tencent Cloud's SCF (Serverless Cloud Function) product. Through the scf command-line tool, you can easily implement function packaging, deployment, local debugging, and you can also easily generate cloud function projects and further develop based on demo projects.
This project mainly provides the Docker image of scf cli, enabling one-click deployment to cloud function SCF (Serverless Cloud Function).
SecretID and SecretKey: Refers to the API key ID and key of the cloud API. You can log in to the Access Management Console, select [Cloud API Key] > API Key Management, to obtain or create related keys.
Same as secret_id
When the application directory contains multiple Serverless instances, and you only need to update a specific project, pass in the relative path of the specified project.
Whether to enable debug mode to view specific log information during the deployment process.
true: Enable debug mode false: Disable debug mode
Default is false
After deployment, whether to execute the scf info command to output deployment result information.
true: Output deployment result information false: Do not output deployment result information
Default is false
docker run --rm -it \ -e PLUGIN_SECRET_ID=your-secret-id \ -e PLUGIN_SECRET_KEY=your-secret-key \ -v $(pwd):$(pwd) -w $(pwd) tencentcom/tencentyun-scf
main:
push:
- stages:
- name: scf deploy
image: tencentcom/tencentyun-scf
settings:
debug: true
target: ./scf
secret_id: your-secret-id
secret_key: your-secret-key