Skip to content

Commit

Permalink
Fixed migrations runner
Browse files Browse the repository at this point in the history
  • Loading branch information
dyatlov-a committed Sep 17, 2024
1 parent 26fe61f commit 5d7d5ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,23 @@ public sealed class Build : NukeBuild
.DependsOn(Publish)
.Executes(() =>
{
var gatewayProject = "Inc.TeamAssistant.Gateway";
DockerBuild(x => x
.DisableProcessLogOutput()
.SetProcessWorkingDirectory(RootDirectory)
.SetPath(".")
.SetFile("cicd/dockerfile.app_component")
.SetBuildArg("PROJECT=Inc.TeamAssistant.Gateway")
.SetTag(GetImageName("inc.teamassistant.gateway")));
.SetBuildArg($"PROJECT={gatewayProject}")
.SetTag(GetImageName(gatewayProject.ToLowerInvariant())));

var migrationsProject = "Inc.TeamAssistant.MigrationsRunner";
DockerBuild(x => x
.DisableProcessLogOutput()
.SetProcessWorkingDirectory(RootDirectory)
.SetPath(".")
.SetFile("cicd/dockerfile.migrations_runner")
.SetBuildArg("PROJECT=Inc.TeamAssistant.MigrationsRunner")
.SetTag(GetImageName("inc.teamassistant.migrationsrunner")));
.SetBuildArg($"PROJECT={migrationsProject}")
.SetTag(GetImageName(migrationsProject.ToLowerInvariant())));
});

private Target PushImages => _ => _
Expand Down
2 changes: 1 addition & 1 deletion cicd/dockerfile.migrations_runner
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ RUN rm -f *.sh \
# Run app as non root user
USER ${APP_USER}

ENTRYPOINT dotnet ${APP_DLL}
ENTRYPOINT ["dotnet", ${APP_DLL}]

0 comments on commit 5d7d5ff

Please sign in to comment.