Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1 #4

Merged
merged 8 commits into from
Jul 30, 2024
3 changes: 2 additions & 1 deletion .env.exemplo
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
URL_USER_SERVICE=http://user-api:8000
URL_PRINTER_SERVICE=http://printer-api:8001
URL_CONTRACT_SERVICE=http://contracts-api:8002
URL_SCHEDULER_SERVICE=https://2023-1-schedula-gerenciador-de-localidades.vercel.app
NODE_ENV=dev
NODE_ENV=dev
15 changes: 15 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Deploy no Render
on:
workflow_dispatch:
push:
branches:
- main
- dev

jobs:
render:
name: render
runs-on: ubuntu-latest
steps:
- name: Trigger deploy
run: curl ${{secrets.RENDER_TRIGGER}}
1 change: 1 addition & 0 deletions src/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ app.get('/', (req, res) => {
app.use('/schedular', httProxy(process.env.URL_SCHEDULAR_SERVICE ? process.env.URL_SCHEDULAR_SERVICE : 'https://2023-1-schedula-gerenciador-de-localidades.vercel.app', { timeout: 10000 }));
app.use('/user', httProxy(process.env.URL_USER_SERVICE ? process.env.URL_USER_SERVICE : 'https://2023-2-print-go-user-service-seven.vercel.app', { timeout: 10000 }));
app.use('/printer', httProxy(process.env.URL_PRINTER_SERVICE ? process.env.URL_PRINTER_SERVICE : 'https://2023-2-print-go-printer-service.vercel.app', { timeout: 10000 }));
app.use('/contract', httProxy(process.env.URL_CONTRACT_SERVICE, { timeout: 10000 }));

const PORT = process.env.PORT || 4000;
const gateway = app.listen(PORT, () => {
Expand Down
Loading