Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Juliiii/action-scf
github actions to deploy functions to tencentcloud serverless
https://github.com/Juliiii/action-scf
Last synced: 6 days ago
JSON representation
github actions to deploy functions to tencentcloud serverless
- Host: GitHub
- URL: https://github.com/Juliiii/action-scf
- Owner: Juliiii
- License: mit
- Created: 2019-09-21T11:22:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-22T12:44:41.000Z (about 5 years ago)
- Last Synced: 2024-08-02T07:22:33.069Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-actions - GitHub Action for TencentCloud Serverless
- fucking-awesome-actions - GitHub Action for TencentCloud Serverless
- awesome-workflows - GitHub Action for TencentCloud Serverless
README
## action-scf
This action helps you to deploy your functions to tencentcloud serverless easily
#### Usage
At first, you are necessary to learn something about tencentcloud serverless.
Here is the [document](https://cloud.tencent.com/document/product/583/9199?language=en).Then, the action reles on SCF CLI.
The input of the action except args is the same as the params of scf configure, but you have to make the keys of params to small hump, eg: secret-id -> secretId.
You can learn more in this github, [scfcli](https://github.com/tencentyun/scfcli).
And the args is designed to the users to exec scf deploy more flexibility, eg:
if you want to deploy the functions , not deploy the triggers and use a cos bucket to deploy, you can input the args like that:```bash
deploy --skip-event -c {{COS_BUCKET}}
```#### Example
Here is an executable example.```yml
name: CIon: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "10.x"
- name: npm install
run: cd hello_world && npm install
- name: deploy
uses: Juliiii/action-scf@master
with:
appId: 1252618971
region: ap-guangzhou
usingCos: "true"
secretId: ${{ secrets.TENCENTCLOUD_SECRET_ID }}
secretKey: ${{ secrets.TENCENTCLOUD_SECRET_KEY }}
args: deploy -t ./hello_world/template.yaml -f
```
and given the example github: https://github.com/Juliiii/test-scf-github-actions#### License
The MIT License (MIT). Please see [License File](LICENSE) for more information.[ico-release]: https://img.shields.io/github/tag/MilesChou/composer-action.svg
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg
[link-github-release]: https://github.com/Juliiii/action-scf/releases