SANDRAMSC commited on
Commit
1785fdb
·
unverified ·
1 Parent(s): 5b85578

Update ci-cd.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/ci-cd.yml +10 -10
.github/workflows/ci-cd.yml CHANGED
@@ -19,14 +19,14 @@ jobs:
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
 
19
  - name: Install dependencies
20
  run: pip install -r requirements.txt
21
 
22
+ - name: DockerHub Login
23
+ uses: docker/login-action@v2.1.0
24
+ with:
25
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
26
+ password: ${{ secrets.DOCKERHUB_PASSWORD }}
27
 
28
+ - name: Build the Docker image
29
+ run: docker build . --file Dockerfile --tag ${{ secrets.DOCKERHUB_USERNAME }}/docverifyrag
30
+
31
+ - name: Docker Push
32
+ run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/docverifyrag