Skip to content

Commit cf963e1

Browse files
committed
test: debug
Signed-off-by: wss <wssgryx@163.com>
1 parent 40c5971 commit cf963e1

File tree

5 files changed

+72
-84
lines changed

5 files changed

+72
-84
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

serverless-pipeline.yaml

Lines changed: 0 additions & 58 deletions
This file was deleted.

serverless-pipline.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "On Push masters"
2+
3+
steps:
4+
- run: echo $PATH
5+
- plugin: "@serverless-cd/setup-runtime"
6+
inputs:
7+
runtime:
8+
- nodejs18
9+
- nodejs22
10+
- python3.10
11+
- java8
12+
- run: echo $PATH
13+

serverless-pipline_cache.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "On Push masters"
2+
3+
steps:
4+
- plugin: "@serverless-cd/cache"
5+
id: my-cache
6+
inputs:
7+
key: ${{hashFile('./src/package.json')}}
8+
# key: 'xxxxxxx'
9+
path: /root/.npm
10+
region: cn-hongkong
11+
ossConfig:
12+
bucket: 1740298130743624-cn-hongkong-serverless-cd
13+
# internal: false
14+
credentials:
15+
accessKeyID: ${{cloudSecrets.AccessKeyID}}
16+
accessKeySecret: ${{cloudSecrets.AccessKeySecret}}
17+
- run: echo ${{ steps['my-cache'].outputs['cache-hit'] != 'true' }}
18+
- run: ls -al
19+
working-directory: /root/.npm
20+
- run: npm install --production
21+
# if: ${{ steps['my-cache'].outputs['cache-hit'] != 'true' }}
22+
working-directory: ./src

serverless-pipline_ding-talk.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "On Push masters"
2+
3+
runtimes:
4+
- nodejs17
5+
- python3.10
6+
- java17
7+
8+
steps:
9+
- run: npm install @serverless-devs/s@beta -g
10+
- run: ls -al
11+
- run: s config get && s deploy --use-local -y -a default_serverless_devs_access
12+
env:
13+
default_serverless_devs_access: '{"AccountID":"${{cloudSecrets.AccountID}}","AccessKeyID":"${{cloudSecrets.AccessKeyID}}","AccessKeySecret":"${{cloudSecrets.AccessKeySecret}}"}'
14+
core_load_serverless_devs_component: 'devsapp/fc-deploy@dev;'
15+
- name: install in root
16+
run: npm install --registry=https://registry.npmmirror.com --force
17+
working-directory: ./code
18+
- name: echo
19+
plugin: '@serverless-cd/npm-publish'
20+
# if: ${{ contains(github.ref, 'engine')}}
21+
inputs:
22+
registry: //registry.npmjs.org
23+
token: ${{ secrets.npm_token }}
24+
codeDir: ./code
25+
- name: 钉钉通知
26+
plugin: "@serverless-cd/ding-talk"
27+
inputs:
28+
webhook: https://oapi.dingtalk.com/robot/send?access_token=${{secrets.DING_TALK_TOKEN}}
29+
msgtype: markdown
30+
secret: ${{secrets.DING_TALK_SECRET}}
31+
payload:
32+
title: "Serverless CD"
33+
text: |
34+
# 杭州天气 @150XXXXXXXX <br />
35+
> 9度,西北风1级,空气良89,相对温度73% <br />
36+
> ![screenshot](https://img.alicdn.com/tfs/TB1NwmBEL9TBuNjy1zbXXXpepXa-2400-1218.png) <br />
37+
> ###### 10点20分发布 [天气](https://www.dingtalk.com)

0 commit comments

Comments
 (0)