File size: 566 Bytes
c39ce8e
 
 
 
4b40c23
c39ce8e
 
1e9cd60
c39ce8e
 
1e9cd60
 
1785fdb
 
1e9cd60
c39ce8e
1785fdb
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Build and Publish Docker Image to DockerHub

on:
  push:
    branches: ["main"]

jobs:
  login:
    runs-on: ubuntu-latest
    steps:
      - name: Login to Docker Hub
        uses: docker/login-action@v3
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}

      - name: Build the Docker image
        run: docker build . --file Dockerfile --tag ${{ secrets.DOCKERHUB_USERNAME }}/docverifyrag

      - name: Docker Push
        run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/docverifyrag