Skip to content

Commit

Permalink
origin added
Browse files Browse the repository at this point in the history
  • Loading branch information
kedar200 committed Sep 5, 2024
1 parent 473989c commit 844f2c9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login Dockerhub
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD

- name: Build the Docker image
run: docker build -t kedar2003/otc-backend:latest .

- name: Push to Dockerhub
run: docker push kedar2003/otc-backend:latest
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ const app = express();
app.use(
cors({
origin: [
"*"
"http://127.0.0.1:3000",
"http://localhost:3000",
"https://limitless-frontend-pi.vercel.app"
],
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
credentials: true,
Expand Down

0 comments on commit 844f2c9

Please sign in to comment.