Skip to content

Merge pull request #10 from salgadev/snyk-upgrade-65b54f5642e4f7b388a… #41

Merge pull request #10 from salgadev/snyk-upgrade-65b54f5642e4f7b388a…

Merge pull request #10 from salgadev/snyk-upgrade-65b54f5642e4f7b388a… #41

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