File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 13
13
dotnet-version : 7.0.x
14
14
- run : dotnet pack
15
15
- run : dotnet nuget push 'ScipDotnet/bin/Debug/*.nupkg' --source 'nuget.org' --api-key '${{ secrets.NUGET_APIKEY }}' --skip-duplicate
16
-
16
+ docker-push :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ - uses : actions/setup-dotnet@v3
21
+ with :
22
+ dotnet-version : 7.0.x
23
+ - uses : docker/setup-buildx-action@v2
24
+ - run : echo "PATCH=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
25
+ - run : echo "MINOR=${PATCH%.*}" >> $GITHUB_ENV
26
+ - run : echo "MAJOR=${MINOR%.*}" >> $GITHUB_ENV
27
+ - name : Login to DockerHub
28
+ uses : docker/login-action@v2
29
+ with :
30
+ username : ${{ secrets.DOCKER_USERNAME }}
31
+ password : ${{ secrets.DOCKER_PASSWORD }}
32
+ - name : Build and push
33
+ id : docker_build
34
+ uses : docker/build-push-action@v3
35
+ with :
36
+ push : true
37
+ tags : |
38
+ sourcegraph/scip-dotnet:latest
39
+ sourcegraph/scip-dotnet:${{ env.PATCH }}
40
+ sourcegraph/scip-dotnet:${{ env.MINOR }}
41
+ sourcegraph/scip-dotnet:${{ env.MAJOR }}
17
42
Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/dotnet/sdk:7.0
2
+ WORKDIR /scip-dotnet
3
+ ADD . /scip-dotnet
4
+ RUN dotnet pack
5
+ ENV PATH="/root/.dotnet/tools:${PATH}"
6
+ RUN dotnet tool install --add-source ScipDotnet/bin/Debug/ --global scip-dotnet
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
1
3
using System . Diagnostics ;
4
+ using System . IO ;
5
+ using System . Linq ;
2
6
using System . Text ;
3
7
using DiffPlex . DiffBuilder ;
4
8
using DiffPlex . DiffBuilder . Model ;
You can’t perform that action at this time.
0 commit comments