Spaces:
Runtime error
Runtime error
Update ci-cd.yml
Browse files- .github/workflows/ci-cd.yml +13 -32
.github/workflows/ci-cd.yml
CHANGED
@@ -1,51 +1,32 @@
|
|
1 |
name: Build and Publish Docker Image to DockerHub
|
2 |
|
3 |
-
|
4 |
on:
|
5 |
push:
|
6 |
-
branches:
|
|
|
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: Set up
|
18 |
uses: actions/setup-python@v2
|
19 |
|
20 |
- name: Install dependencies
|
21 |
run: pip install -r requirements.txt
|
22 |
|
23 |
deploy:
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
steps:
|
29 |
-
- name: Build and Push Docker Image
|
30 |
-
run: |
|
31 |
-
docker build -t ${{ secrets.DOCKER_USERNAME }}/dockverifyrag:latest .
|
32 |
-
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
33 |
-
docker push ${{ secrets.DOCKERHUB_USERNAME }}/dockverifyrag:latest
|
34 |
-
|
35 |
-
|
36 |
-
update-readme:
|
37 |
-
runs-on: ubuntu-latest
|
38 |
-
needs: build
|
39 |
-
|
40 |
-
steps:
|
41 |
-
- name: Checkout code
|
42 |
-
uses: actions/checkout@v2
|
43 |
-
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
git push
|
|
|
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 |
|
19 |
- name: Install dependencies
|
20 |
run: pip install -r requirements.txt
|
21 |
|
22 |
deploy:
|
23 |
+
runs-on: ubuntu-latest
|
24 |
+
needs: build
|
25 |
+
if: success()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
+
steps:
|
28 |
+
- name: Build and push Docker image
|
29 |
+
run: |
|
30 |
+
docker build -t sandramsc/docverifyrag:latest .
|
31 |
+
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
32 |
+
docker push sandramsc/docverifyrag:latest
|
|