Skip to content

fix: The workflow file is updated. #5

fix: The workflow file is updated.

fix: The workflow file is updated. #5

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches: [ "main" ]
workflow_dispatch: # This allows manual triggering of the workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to DockerHub
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build -t surajkumar00/devops-url2qr-api .
- name: Push the Docker image to DockerHub
run: docker push surajkumar00/devops-url2qr-api