-
Notifications
You must be signed in to change notification settings - Fork 15
52 lines (50 loc) · 1.7 KB
/
docker-image.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
name: Qanary Component Build Pipeline
on:
push:
branches: [ master ]
jobs:
build-java:
runs-on: ubuntu-latest
env:
BABELFY_API_KEY: ${{ secrets.BABELFY_API_KEY }}
CHATGPT_API_KEY: ${{ secrets.CHATGPT_API_KEY }}
DANDELION_API_KEY: ${{ secrets.DANDELION_API_KEY }}
MEANINGCLOUD_API_KEY: ${{ secrets.MEANINGCLOUD_API_KEY }}
TAGME_API_KEY: ${{ secrets.TAGME_API_KEY }}
TEXTRAZOR_API_KEY: ${{ secrets.TEXTRAZOR_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- name: Configure java
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'
- name: Docker Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/checkout@v4
- name: Build and push Java components
run: bash -c ./service_config/build_images.sh
- name: Init update
uses: WSE-research/[email protected]
with:
api_key: ${{ secrets.API_KEY }}
updater_host: ${{ secrets.UPDATER_HOST }}
build-python:
runs-on: ubuntu-latest
steps:
- name: Docker Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/checkout@v4
- name: Build and push Python components
run: bash -c ./service_config/build_python_images.sh
- name: Init update
uses: WSE-research/[email protected]
with:
api_key: ${{ secrets.API_KEY }}
updater_host: ${{ secrets.UPDATER_HOST }}