Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishDave1 authored Nov 23, 2024
1 parent 891ad52 commit 8d66dd2
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,41 +73,3 @@ jobs:
--build-arg NEXTAUTH_URL=${{ secrets.NEXTAUTH_URL }} \
-t $IMAGE_NAME .
docker push $IMAGE_NAME
deploy:
runs-on: ubuntu-latest
needs: build

steps:
# Step 1: Checkout code
- name: Checkout code
uses: actions/checkout@v4

# Step 2: Setup Node.js
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20 # Specify the Node.js version
cache: 'npm'

# Step 3: Download build artifacts
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: nextjs-build

# Step 4: Deploy to Vercel
- name: Deploy to Vercel
run: npx vercel --prod --yes
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }}
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
PUSHER_APP_ID: ${{ secrets.PUSHER_APP_ID }}
NEXT_PUBLIC_PUSHER_KEY: ${{ secrets.NEXT_PUBLIC_PUSHER_KEY }}
PUSHER_SECRET: ${{ secrets.PUSHER_SECRET }}
PUSHER_CLUSTER: ${{ secrets.PUSHER_CLUSTER }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }}

0 comments on commit 8d66dd2

Please sign in to comment.