Skip to content

Commit

Permalink
Update push-to--Dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
ansuj9123 authored Feb 24, 2024
1 parent 7d28846 commit 8ae2931
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/push-to--Dockerhub
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@

name: Build and Push Docker image to Docker Hub

on:
push:
branches: [ fullstack-final ]

jobs:
Deploy:
name: Build and Push Docker image to Docker Hub
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: ls
- name: SSH into EC2 and run commands
uses: appleboy/[email protected]
with:
host: 13.40.127.171
username: ubuntu
key: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
name: Build and push Docker Hub
uses: docker/build-push-action@v4
with:
context: DockerFileFolder
push: true
tags: ansuj9/github


0 comments on commit 8ae2931

Please sign in to comment.