Skip to content

feat: The project is Dockerize and github actions is added to push do… #1

feat: The project is Dockerize and github actions is added to push do…

feat: The project is Dockerize and github actions is added to push do… #1

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to DockerHub
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: echo $DOCKER_PASSWORD | docker login -u $DOCKER_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