Skip to content

Commit

Permalink
Update build and publish commands in Docker action
Browse files Browse the repository at this point in the history
The Docker workflow in the GitHub Actions pipeline has been modified to specify the project file in the build and publish commands. Previously, the build and publish commands did not specify the project file, which could potentially cause issues if multiple project files exist in the solution. Now, these commands explicitly target the 'DiscordMonies/DiscordMonies.csproj' file for building and publishing.
  • Loading branch information
vicr123 committed May 11, 2024
1 parent d2601ce commit 75d1e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ jobs:

- name: Build .NET
run: |
dotnet build -r linux-musl-x64 -c Release
dotnet build DiscordMonies/DiscordMonies.csproj -r linux-musl-x64 -c Release
- name: Publish .NET
if: ${{ github.event_name == 'push' }}
run: |
dotnet publish -r linux-musl-x64 -t:PublishContainer -p:ContainerImageTag="${{ steps.meta.outputs.tags }}"
dotnet publish DiscordMonies/DiscordMonies.csproj -r linux-musl-x64 -t:PublishContainer -p:ContainerImageTag="${{ steps.meta.outputs.tags }}"

0 comments on commit 75d1e46

Please sign in to comment.