Skip to content

Commit

Permalink
Change docker file position and build only on nuke branch
Browse files Browse the repository at this point in the history
  • Loading branch information
iAmBipinPaul committed Mar 29, 2024
1 parent e780830 commit 338b6b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/aspnetcore.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: ASP.NET Core CI
on: [push]
on:
push:
branches: [ nuke ]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ RUN dotnet publish -c Release -o output
FROM mcr.microsoft.com/dotnet/aspnet:8.0.3-alpine3.19-amd64
WORKDIR output
COPY --from=buildimg /app/src/AspNetCoreDevOps.Api/output .

LABEL org.opencontainers.image.source https://github.com/iAmBipinPaul/AspNetCoreDevOps

ENTRYPOINT ["dotnet","AspNetCoreDevOps.Api.dll"]


LABEL org.opencontainers.image.source https://github.com/iAmBipinPaul/AspNetCoreDevOps

0 comments on commit 338b6b9

Please sign in to comment.