Spaces:
Running
Running
Merge branch 'sandramsc-dev' of https://github.com/sandramsc/DocVerifyRAG into sandramsc-dev
Browse files- .github/ci-cd.yml +0 -0
- .github/workflow/ci-cd.yml +0 -53
- .github/workflows/ci-cd.yml +27 -0
- README.md +4 -4
- requirements.txt +1 -0
.github/ci-cd.yml
DELETED
File without changes
|
.github/workflow/ci-cd.yml
DELETED
@@ -1,53 +0,0 @@
|
|
1 |
-
name: Build and Publish Docker Image to DockerHub
|
2 |
-
|
3 |
-
|
4 |
-
on:
|
5 |
-
push:
|
6 |
-
branches: ["main"]
|
7 |
-
|
8 |
-
jobs:
|
9 |
-
build:
|
10 |
-
runs-on: ubuntu-latest
|
11 |
-
|
12 |
-
|
13 |
-
steps:
|
14 |
-
- name: Checkout code
|
15 |
-
uses: actions/checkout@v3
|
16 |
-
|
17 |
-
- name: Setup Python
|
18 |
-
uses: actions/setup-python@v2
|
19 |
-
with:
|
20 |
-
python-version: 3.9
|
21 |
-
|
22 |
-
- name: Install dependencies
|
23 |
-
run: pip install -r requirements.txt
|
24 |
-
|
25 |
-
deploy:
|
26 |
-
runs-on: ubuntu-latest
|
27 |
-
needs: build
|
28 |
-
if: success()
|
29 |
-
|
30 |
-
steps:
|
31 |
-
- name: Build and Push Docker Image
|
32 |
-
run: |
|
33 |
-
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/dockerverifyrag:latest .
|
34 |
-
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
35 |
-
docker push ${{ secrets.DOCKERHUB_USERNAME }}/dockverifyrag:latest
|
36 |
-
|
37 |
-
|
38 |
-
update-readme:
|
39 |
-
runs-on: ubuntu-latest
|
40 |
-
needs: build
|
41 |
-
|
42 |
-
steps:
|
43 |
-
- name: Checkout code
|
44 |
-
uses: actions/checkout@v2
|
45 |
-
|
46 |
-
|
47 |
-
- name: Update README
|
48 |
-
run: |
|
49 |
-
git config --global user.email "actions@github.com"
|
50 |
-
git config --global user.name "GitHub Actions"
|
51 |
-
git add .
|
52 |
-
git commit -m "README.md has been updated"
|
53 |
-
git push
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/ci-cd.yml
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Build and Publish Docker Image to DockerHub
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- main
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
build:
|
10 |
+
runs-on: ubuntu-latest
|
11 |
+
|
12 |
+
steps:
|
13 |
+
- name: Checkout code
|
14 |
+
uses: actions/checkout@v3
|
15 |
+
|
16 |
+
- name: Set up Python
|
17 |
+
uses: actions/setup-python@v2
|
18 |
+
with:
|
19 |
+
python-version: 3.9
|
20 |
+
|
21 |
+
- name: Log in to Docker Hub
|
22 |
+
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
23 |
+
|
24 |
+
- name: Build and push Docker image
|
25 |
+
run: |
|
26 |
+
docker build -t ${{ secrets.DOCKER_USERNAME }}/docverifyrag:latest .
|
27 |
+
docker push ${{ secrets.DOCKER_USERNAME }}/docverifyrag:latest
|
README.md
CHANGED
@@ -63,7 +63,7 @@
|
|
63 |
|
64 |
1. Clone the repository:
|
65 |
```bash
|
66 |
-
$ git clone https://github.com/
|
67 |
```
|
68 |
|
69 |
2. Navigate to the project directory:
|
@@ -80,16 +80,16 @@
|
|
80 |
|
81 |
To deploy DocVerifyRAG using Docker, follow these steps:
|
82 |
|
83 |
-
1.
|
84 |
|
85 |
```bash
|
86 |
-
$ docker
|
87 |
```
|
88 |
|
89 |
2. Run the Docker container:
|
90 |
|
91 |
```bash
|
92 |
-
$ docker run -d -p 5000:5000 docverifyrag
|
93 |
```
|
94 |
|
95 |
### Usage
|
|
|
63 |
|
64 |
1. Clone the repository:
|
65 |
```bash
|
66 |
+
$ git clone https://github.com/eliawaefler/DocVerifyRAG.git
|
67 |
```
|
68 |
|
69 |
2. Navigate to the project directory:
|
|
|
80 |
|
81 |
To deploy DocVerifyRAG using Docker, follow these steps:
|
82 |
|
83 |
+
1. Pull the Docker image from Docker Hub:
|
84 |
|
85 |
```bash
|
86 |
+
$ docker pull sandra/docverifyrag:latest
|
87 |
```
|
88 |
|
89 |
2. Run the Docker container:
|
90 |
|
91 |
```bash
|
92 |
+
$ docker run -d -p 5000:5000 sandramsc/docverifyrag:latest
|
93 |
```
|
94 |
|
95 |
### Usage
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
|