Skip to content

Commit

Permalink
Fix deploy Render. Strint connection to mongodb error
Browse files Browse the repository at this point in the history
  • Loading branch information
LauroSilveira committed Nov 16, 2023
1 parent 7e47934 commit cec1d1c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 27 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,12 @@ jobs:
${{ github.workspace }}/target/site/jacoco/jacoco.xml,
token: ${{ secrets.SECRET_TOKEN }}
min-coverage-overall: 40
min-coverage-changed-files: 60
min-coverage-changed-files: 60

docker:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker Image
run: docker build . --file Dockerfile --tag alura-flix-api:$(date +%s) --build-arg DATABASE_PRO=${{ secrets.DATABASE_PRO }} --build-arg DATABASE_TEST=${{ secrets.DATABASE_TEST }} --build-arg DATABASE_TEST=${{ secrets.DATABASE_TEST }}
20 changes: 0 additions & 20 deletions .github/workflows/docker-image.yml

This file was deleted.

7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
FROM maven:3.9.4-eclipse-temurin-21-alpine AS build
COPY . .

ARG DATABASE_PRO
ARG DATABASE_TEST
ARG JWT_SECRET

RUN mvn clean package
RUN mvn clean package

FROM eclipse-temurin:21-jre-alpine
## Arguments used with github secrets
Expand Down

0 comments on commit cec1d1c

Please sign in to comment.