File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed
Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 4040 username : ${{ github.actor }}
4141 password : ${{ secrets.GITHUB_TOKEN }}
4242
43+ - name : Replace Nexus Credentials in NuGet.Config
44+ run : |
45+ sed -i "s|__NEXUS_USER__|${{ secrets.NEXUS_USER }}|g" Nuget.Config
46+ sed -i "s|__NEXUS_PASSWORD__|${{ secrets.NEXUS_PASSWORD }}|g" Nuget.Config
47+
4348 - name : Build and push API Docker image
4449 uses : docker/build-push-action@v5
4550 with :
8287 docker rm "${{ env.UI_CONTAINER_NAME }}" || true
8388 docker rm "${{ env.API_CONTAINER_NAME }}" || true
8489 docker run -d --name "${{ env.API_CONTAINER_NAME }}" --restart=always -p "${{ env.API_PORT }}" "${{ env.REGISTRY }}/${{ env.REPO_NAME}}/${{ env.API_IMAGE_NAME }}:${{ github.sha }}"
85- docker run -d --name "${{ env.UI_CONTAINER_NAME }}" --restart=always -p "${{ env.UI_PORT }}" "${{ env.REGISTRY }}/${{ env.REPO_NAME}}/${{ env.UI_IMAGE_NAME }}:${{ github.sha }}"
90+ docker run -d --name "${{ env.UI_CONTAINER_NAME }}" --restart=always -p "${{ env.UI_PORT }}" "${{ env.REGISTRY }}/${{ env.REPO_NAME}}/${{ env.UI_IMAGE_NAME }}:${{ github.sha }}"
Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
22WORKDIR /app
3+
4+ COPY NuGet.Config /root/.nuget/NuGet/NuGet.Config
35COPY . .
46WORKDIR "/app/GitHub.Actions.API"
57RUN dotnet publish "GitHub.Actions.API.csproj" -o /app/build -c Release
Original file line number Diff line number Diff line change 1+ <configuration>
2+ <packageSources>
3+ <clear />
4+ <add key="Nexus" value="https://nexus.helm.uz/repository/nuget-group/index.json" />
5+ </packageSources>
6+ <packageSourceCredentials>
7+ <Nexus>
8+ <add key="Username" value="__NEXUS_USER__" />
9+ <add key="ClearTextPassword" value="__NEXUS_PASSWORD__" />
10+ </Nexus>
11+ </packageSourceCredentials>
12+ </configuration>
Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
22WORKDIR /app
3+
4+ COPY NuGet.Config /root/.nuget/NuGet/NuGet.Config
35COPY . .
46RUN dotnet restore "GitHub.Actions/GitHub.Actions.csproj"
57WORKDIR "/app/GitHub.Actions"
You can’t perform that action at this time.
0 commit comments