Skip to content

Commit

Permalink
Init of this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mx-Bx committed Jul 16, 2024
1 parent 6590bdb commit 707c889
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: dit-devops-project

on:
push:
branches: [ main ]
branches: [ deployment ]
pull_request:
branches: [ main ]
branches: [ deployment ]

jobs:
build:
Expand Down Expand Up @@ -50,3 +50,12 @@ jobs:
context:
push: true
tags: barryma22/dit-devops-project:latest

- name: Trigger Render Deployment
env:
RENDER_API_KEY: ${{ secrets.RENDER_API_KEY }}
run: |
curl -X POST -H "Authorization: Bearer $RENDER_API_KEY" \
-H "Content-Type: application/json" \
--data '{"serviceId": "your-service-id"}' \
https://api.render.com/v1/services/your-service-id/deploys
8 changes: 7 additions & 1 deletion render.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
services:
- type: web
name: dit-devops-project
plan: free
repo: https://github.com/Mx-Bx/dit-devops-project
branch: main
buildCommand: "pip install -r requirements.txt"
startCommand: "streamlit run ./app/data_app.py"
env: python
env: python
envVars:
- key: STREAMLIT_EMAIL
sync: false
- key: STREAMLIT_PASSWORD
sync: false

0 comments on commit 707c889

Please sign in to comment.