Skip to content

Commit

Permalink
added deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ducheharsh committed Aug 1, 2024
1 parent d76958e commit ea8f4e5
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:
- main

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

- name: Login 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: ./Dockerfile
push: true
tags: ducheharsh/thewallet:latest

- name: Verify Pushed Image
run: docker pull ducheharsh/thewallet:latest

0 comments on commit ea8f4e5

Please sign in to comment.