logo
0
0
Login

tencentyun-scf

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).

Input

secret_id

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.

secret_key

Same as secret_id

target

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.

debug

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

output_info

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

Usage on Docker

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

Usage on Cloud Native Build

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

More Usage

See: Serverless Cloud Framework

About

Serverless Cloud Framework,可以通过本工具在腾讯云上快速部署 SCF 云函数应用

ServerlessSCFCLIDEPLOY
376.00 KiB
0 forks0 stars1 branches0 TagREADMEMIT license
Language
Shell82.7%
Dockerfile17.3%