-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.19 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy Yandex Function
run-name: ${{ github.actor }} function deploy
on:
push:
branches: [ dev, "cicd/**" ]
jobs:
function-deploy:
runs-on: ubuntu-latest
environment: dev
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy Function
id: sls-func
uses: yc-actions/yc-sls-function@v2
with:
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
folder-id: ${{ secrets.YC_FOLDER_ID }}
function-name: ${{ vars.FUNCTION_NAME }}
runtime: 'python312'
memory: '128Mb'
execution-timeout: 10
entrypoint: 'function_app.handle'
environment: |
SIGNING_KEY=${{ secrets.SIGNING_KEY }}
DB_ENDPOINT=${{ secrets.DB_ENDPOINT }}
DB_ACCESS_KEY=${{ secrets.DB_ACCESS_KEY }}
DB_SECRET_KEY=${{ secrets.DB_SECRET_KEY }}
DB_TABLE=dev
VERSION=${{vars.VERSION}}
include: |
src/
packages/
settings.py
function_app.py
requirements.txt
exclude: |
**/.pytest_cache
**/__pycache__
**/.git