Skip to content

Commit

Permalink
fix: The workflow file is updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj-kumar00 committed Oct 9, 2024
1 parent 1ce309f commit f7417d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@ name: Build and Push Docker Image
on:
push:
branches: [ "main" ]
workflow_dispatch:
workflow_dispatch: # This allows manual triggering of the workflow

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout code
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
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin

- name: Build the Docker image
run: docker build -t surajkumar00/devops-url2qr-api .
Expand Down

0 comments on commit f7417d1

Please sign in to comment.