-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Afterlife-Guide/feature/issue-2-gh-action
Set up the project as a GitHub Action
- Loading branch information
Showing
11 changed files
with
89 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/.idea | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/azds.yaml | ||
**/bin | ||
**/charts | ||
**/docker-compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
LICENSE | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: 'Blazor Merge Action' | ||
description: 'Combines the appsettings.json and appsettings.environment.json files into a single appsettings.json file' | ||
inputs: | ||
app-environment: | ||
description: 'The environment to use for the appsettings file' | ||
required: true | ||
path: | ||
description: 'The path to the appsettings files' | ||
required: true | ||
runs: | ||
using: 'docker' | ||
image: 'src/BlazorMerge/Dockerfile' | ||
args: | ||
- '-e' | ||
- ${{ inputs.app-environment }} | ||
- '-p' | ||
- '/github/workspace${{ inputs.path }}' | ||
branding: | ||
icon: 'git-merge' | ||
color: 'green' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace BlazorMerge; | ||
|
||
public class Constants | ||
{ | ||
public static string MainFileName = "appsettings.json"; | ||
public static string EnvironmentFileName = "appsettings.{environment}.json"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Set the base image as the .NET 7.0 SDK (this includes the runtime) | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 as build-env | ||
|
||
# Copy everything and publish the release (publish implicitly restores and builds) | ||
WORKDIR /app | ||
COPY . ./ | ||
RUN dotnet publish ./BlazorMerge.csproj -c Release -o out --no-self-contained | ||
|
||
# Relayer the .NET SDK, anew with the build output | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 | ||
COPY --from=build-env /app/out . | ||
ENTRYPOINT [ "dotnet", "/BlazorMerge.dll" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters