Skip to content

Commit

Permalink
#61 Prepare CI/CD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
natenho committed Oct 9, 2021
1 parent 083b18d commit acfc7d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/aspnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: ./
file: ./Docker/Dockerfile
file: ./src/Mockaco/Docker/Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/mockaco:latest
cache-from: type=local,src=/tmp/.buildx-cache
Expand Down
4 changes: 2 additions & 2 deletions src/Mockaco/Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ WORKDIR /app
EXPOSE 5000

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
COPY ./src/Mockaco/Mockaco.csproj ./src/Mockaco/
WORKDIR ./src/Mockaco
COPY ./src/Mockaco/Mockaco.csproj /src/Mockaco/
WORKDIR /src/Mockaco
RUN dotnet restore
WORKDIR /repo
COPY ./ ./
Expand Down

0 comments on commit acfc7d1

Please sign in to comment.