Skip to content

Commit

Permalink
Formating of build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhanshugautam2911 committed Oct 28, 2024
1 parent faffd2b commit 19b6b00
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ on:
branches:
- main

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check our repo
uses: actions/checkout@v2
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and Push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./docker/Dockerfile.user
push: true
tags: sudhnashu2911/payment-pe:latest
- name: Build and Push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./docker/Dockerfile.user
push: true
tags: sudhnashu2911/payment-pe:latest

- name: Verify Pushed Image
run: docker pull sudhnashu2911/payment-pe:latest
- name: Verify Pushed Image
run: docker pull sudhnashu2911/payment-pe:latest

0 comments on commit 19b6b00

Please sign in to comment.