Skip to content

Commit

Permalink
adds new docker repository job
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-dupdyke committed Jun 17, 2020
1 parent 0a187d7 commit e1c10b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
repository: dustinupdyke/ghosts
tag_with_ref: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}
dockerfile: src/Dockerfile-api
dockerfile: src/Dockerfile-Api
buildcmusei:
# The type of runner that the job will run on
runs-on: ubuntu-latest
Expand All @@ -40,4 +40,4 @@ jobs:
repository: cmusei/ghosts
tag_with_ref: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}
dockerfile: src/Dockerfile-api
dockerfile: src/Dockerfile-Api
7 changes: 4 additions & 3 deletions src/Dockerfile-api
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS dev
ENV ASPNETCORE_URLS=http://*:5000 \
ASPNETCORE_ENVIRONMENT=DEVELOPMENT

COPY . /app
COPY Ghosts.Api/. /app/Ghosts.Api
COPY Ghosts.Domain/. /app/Ghosts.Domain

WORKDIR /app
RUN dotnet publish Ghosts.Api/ghosts.api.csproj -c Release -o /app/dist
WORKDIR /app/Ghosts.Api
RUN dotnet publish -c Release -o /app/dist
CMD ["dotnet", "run"]

#
Expand Down

0 comments on commit e1c10b5

Please sign in to comment.