-
Notifications
You must be signed in to change notification settings - Fork 1
98 lines (87 loc) · 3.59 KB
/
ci-pipeline__dev.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name : CI Pipeline - DEV
on:
workflow_dispatch:
push:
branches:
- dev
env:
RELEASE_TYPE : 'minor'
PACKAGE_NAME : 'osbot_llms'
DOCKER__CONTEXT : "."
DOCKER__FILE : './deploy/docker/osbot-llms/Dockerfile'
jobs:
run-tests:
name: "Run tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "run-tests"
uses: ./.github/actions/run-tests
env:
OPEN_AI__API_KEY : ${{ secrets.OPEN_AI__API_KEY }}
OPEN_ROUTER_API_KEY : ${{ secrets.OPEN_ROUTER_API_KEY }}
GROQ_API_KEY : ${{ secrets.GROQ_API_KEY }}
MISTRAL_API_KEY : ${{ secrets.MISTRAL_API_KEY }}
TOGETHER_AI_API_KEY : ${{ secrets.TOGETHER_AI_API_KEY }}
PERPLEXITY_API : ${{ secrets.PERPLEXITY_API }}
increment-tag:
name: Increment Tag - DEV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Increment Tag
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__increment-tag@dev
with:
release_type: ${{ env.RELEASE_TYPE }}
needs:
- run-tests
publish-to-pypi:
#if: False
name: "Publish to: PYPI"
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Git Update Current Branch
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__update_branch@dev
- name: publish-to-pypi
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pypi__publish@dev
needs:
- increment-tag
publish-to-aws-ecr:
name: "Publish to: AWS ECR"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Wait for PyPI publish"
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pypi__wait-for-publish@dev
- name: "Publish to: AWS ECR"
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/aws__publish__ecr@dev
env:
AWS_ACCOUNT_ID : ${{ secrets.AWS_ACCOUNT_ID__654654216424 }}
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID__654654216424 }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY__654654216424 }}
AWS_DEFAULT_REGION : ${{ secrets.AWS_DEFAULT_REGION__654654216424 }}
needs:
- publish-to-pypi
deploy-lambda-function:
name: Deploy Lambda Function
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Tests and Integration Tests
uses: ./.github/actions/aws__deploy-lambda
env:
AWS_ACCOUNT_ID__654654216424 : ${{ secrets.AWS_ACCOUNT_ID__654654216424 }}
AWS_ACCESS_KEY_ID__654654216424 : ${{ secrets.AWS_ACCESS_KEY_ID__654654216424 }}
AWS_SECRET_ACCESS_KEY__654654216424: ${{ secrets.AWS_SECRET_ACCESS_KEY__654654216424 }}
AWS_DEFAULT_REGION__654654216424 : ${{ secrets.AWS_DEFAULT_REGION__654654216424 }}
OPEN_AI__API_KEY : ${{ secrets.OPEN_AI__API_KEY }}
OPEN_ROUTER_API_KEY : ${{ secrets.OPEN_ROUTER_API_KEY }}
GROQ_API_KEY : ${{ secrets.GROQ_API_KEY }}
MISTRAL_API_KEY : ${{ secrets.MISTRAL_API_KEY }}
TOGETHER_AI_API_KEY : ${{ secrets.TOGETHER_AI_API_KEY }}
PERPLEXITY_API : ${{ secrets.PERPLEXITY_API }}
needs:
- publish-to-aws-ecr