Skip to content

fix: The workflow file is updated. #6

fix: The workflow file is updated.

fix: The workflow file is updated. #6

Workflow file for this run

name: CI Pipeline
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to DockerHub
env:
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: echo $DOCKER_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
- 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