Skip to content

Merge pull request #6 from salgadev/snyk-upgrade-38b7aadb914e79a231f9… #32

Merge pull request #6 from salgadev/snyk-upgrade-38b7aadb914e79a231f9…

Merge pull request #6 from salgadev/snyk-upgrade-38b7aadb914e79a231f9… #32

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