-
Notifications
You must be signed in to change notification settings - Fork 21
102 lines (91 loc) · 3.06 KB
/
package.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
99
100
101
102
name: Package Nesis
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag'
required: true
core:
description: 'Core'
required: true
default: cpu
jobs:
package_api:
name: Package API
runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
file: ./nesis/api/Dockerfile
tags: ametnes/nesis:${{ github.event.inputs.tag }}-api,ametnes/nesis:latest-api
build-args: |
NESIS_VERSION=${{ github.event.inputs.tag }}
package_frontend:
name: Package Frontend
runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.dockerfile_branch }}
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push frontend Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
file: ./nesis/frontend/Dockerfile
tags: ametnes/nesis:${{ github.event.inputs.tag }}-frontend, ametnes/nesis:latest-frontend
build-args: |
PUBLIC_URL=/
PROFILE=PROD
NESIS_VERSION=${{ github.event.inputs.tag }}
package_rag:
name: Package RAG Engine
runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.dockerfile_branch }}
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push RAG docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
file: ./nesis/rag/Dockerfile
tags: ametnes/nesis:${{ github.event.inputs.tag }}-rag, ametnes/nesis:latest-rag
build-args: |
NESIS_VERSION=${{ github.event.inputs.tag }}
- name: Build and push core tagged RAG docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
file: ./nesis/rag/Dockerfile
tags: ametnes/nesis:${{ github.event.inputs.tag }}-rag-${{ github.event.inputs.core }}, ametnes/nesis:latest-rag-${{ github.event.inputs.core }}
build-args: |
NESIS_VERSION=${{ github.event.inputs.tag }}
CORE=${{ github.event.inputs.core }}