Skip to content

Commit

Permalink
Merge pull request #1 from subhanahujha007/main
Browse files Browse the repository at this point in the history
Main: created the cd pipleline
  • Loading branch information
subhanahujha007 authored Jul 6, 2024
2 parents 00da6bf + 5629d31 commit 8ff66c5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Build Next.js App
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

jobs:
build:
Expand Down
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: ./Dockerfile
push: true
tags: subhanshujha007/arcade:arcade_game # Replace with your Docker Hub username and repository

- name: Verify Pushed Image
run: docker pull subhanshujha007/arcade:arcade_game # Replace with your Docker Hub username and repository
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import GameCanvas from '../Componenets/GameCanvas';
const Home = () => {
return (
<div className="container">
<h1 style={{marginBottom:"20px",border:"2px solid white"}} >Arcade Game</h1>
<h1 style={{marginBottom:"20px",border:"2px solid white"}} >::Arcade Game::</h1>

<GameCanvas/>
</div>
Expand Down

0 comments on commit 8ff66c5

Please sign in to comment.