Skip to content

Merge pull request #13 from salgadev/snyk-fix-24562e849d9910bd70bb974… #36

Merge pull request #13 from salgadev/snyk-fix-24562e849d9910bd70bb974…

Merge pull request #13 from salgadev/snyk-fix-24562e849d9910bd70bb974… #36

Workflow file for this run

name: Build and Publish Docker Image to DockerHub
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build and push Docker image
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/docverifyrag:latest .
docker push ${{ secrets.DOCKER_USERNAME }}/docverifyrag:latest