Skip to content

Commit aafdbf2

Browse files
committed
switch to render.yaml
1 parent 1005da6 commit aafdbf2

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy to Docker Hub and Render
33
on:
44
push:
55
branches:
6-
- retina # Triggers on every commit to this branch
6+
- retina
77
paths-ignore:
88
- '**.md'
99

@@ -31,17 +31,20 @@ jobs:
3131
uses: docker/build-push-action@v4
3232
with:
3333
context: .
34-
file: ./Dockerfile # Explicitly specifying Dockerfile
34+
file: ./Dockerfile
3535
platforms: linux/amd64
3636
push: true
3737
tags: seanyl/deepgit:app
3838

3939
deploy-to-render:
40-
needs: build-and-push # Ensure this runs only after the Docker image is pushed
40+
needs: build-and-push
4141
runs-on: ubuntu-latest
4242

4343
steps:
44-
- name: Trigger Render Deployment
44+
- name: Checkout repository
45+
uses: actions/checkout@v3
46+
47+
- name: Deploy to Render
4548
env:
4649
RENDER_DEPLOY_HOOK: ${{ secrets.RENDER_DEPLOY_HOOK }}
4750
run: |

docker-compose.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

render.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
services:
2+
- type: web
3+
name: deepgit
4+
runtime: docker
5+
image: seanyl/deepgit:app
6+
plan: free # Change this based on your needs: free, starter, standard, pro
7+
envVars:
8+
- key: NODE_ENV
9+
value: production
10+
autoDeploy: true # Automatically deploy new images when updated
11+
healthCheckPath: / # Adjust based on your app's health check
12+
env: docker
13+
region: oregon # Change based on your preferred Render region
14+
disk:
15+
name: data
16+
mountPath: /app/data # Adjust if you need persistent storage
17+
sizeGB: 1 # Adjust storage size
18+
ports:
19+
- 5173

0 commit comments

Comments
 (0)