Skip to content

Commit

Permalink
added deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aqeell7 committed Sep 23, 2024
1 parent 548cf7c commit 71dfad6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Deploy to Docker Hub

on:
push:
branches:
- master

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: Build and Push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./docker/Dockerfile.user
push: true
tags: ahmed431/paytm-docker:latest # Replace with your Docker Hub username and repository

- name: Verify Pushed Image
run: docker pull 100xdevs/web-app:latest # Replace with your Docker Hub username and repository

0 comments on commit 71dfad6

Please sign in to comment.