File tree 4 files changed +22
-1
lines changed
4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 40
40
username : ${{ github.actor }}
41
41
password : ${{ secrets.GITHUB_TOKEN }}
42
42
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
+
43
48
- name : Build and push API Docker image
44
49
uses : docker/build-push-action@v5
45
50
with :
82
87
docker rm "${{ env.UI_CONTAINER_NAME }}" || true
83
88
docker rm "${{ env.API_CONTAINER_NAME }}" || true
84
89
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 1
1
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
2
2
WORKDIR /app
3
+
4
+ COPY NuGet.Config /root/.nuget/NuGet/NuGet.Config
3
5
COPY . .
4
6
WORKDIR "/app/GitHub.Actions.API"
5
7
RUN 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 1
1
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
2
2
WORKDIR /app
3
+
4
+ COPY NuGet.Config /root/.nuget/NuGet/NuGet.Config
3
5
COPY . .
4
6
RUN dotnet restore "GitHub.Actions/GitHub.Actions.csproj"
5
7
WORKDIR "/app/GitHub.Actions"
You can’t perform that action at this time.
0 commit comments