Skip to content

Commit

Permalink
fix: dockerfile exposes port 8080, fixes in deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maxitect committed Nov 29, 2024
1 parent e24ec18 commit 7952f82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ jobs:
--cpu=0.1 \
--memory=256Mi \
--service-account=github-actions@poke-like-api.iam.gserviceaccount.com \
--set-env-vars="ConnectionStrings__PokeLikeDbContext=Host=/cloudsql/$PROJECT_ID:$REGION:postgres-instance;Database=PokeLikeDb;Username=postgres;Password=welovepokemon" \
--set-env-vars="ASPNETCORE_URLS=http://+:8080,ConnectionStrings__PokeLikeDbContext=Host=/cloudsql/poke-like-api:europe-west2:postgres-instance;Database=PokeLikeDb;Username=postgres;Password=welovepokemon" \
--add-cloudsql-instances=$PROJECT_ID:$REGION:postgres-instance \
--allow-unauthenticated \
--vpc-connector=pokelike-connector
--vpc-connector=pokelike-connector \s
--port=8080
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ ENV ASPNETCORE_URLS=http://+:8080

ENTRYPOINT ["dotnet", "PRO05_BACK_Gaj_Khalos_Max.dll"]

EXPOSE 8080


0 comments on commit 7952f82

Please sign in to comment.