File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,20 @@ jobs:
1414
1515 steps :
1616 - uses : actions/checkout@v3
17+ - uses : actions/setup-dotnet@v2
18+ with :
19+ dotnet-version : ' 3.1.x'
20+ - name : Publish
21+ run : |
22+ dotnet publish -c Release -o artifacts
23+ rm artifacts/*.pdb
1724 - name : Login to docker
1825 run : echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
1926 - name : Determine version
2027 run : echo "VERSION=$(git describe --tags --dirty)" >> $GITHUB_ENV
21- - name : Build the Docker image
22- run : |
23- wget https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh
24- ./dotnet-install.sh --channel 3.1
2528 - name : Build the Docker image
2629 run : |
2730 docker build . --file Dockerfile --tag tsakidev/giteacomment:${VERSION}
2831 docker build . --file Dockerfile --tag tsakidev/giteacomment:latest
2932 - name : Docker push
30- run : docker push tsakidev/giteacomment
33+ run : docker push -a tsakidev/giteacomment
Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/dotnet/core/runtime:3.1.8-buster-slim
2- RUN dotnet publish -c Release -o artifacts
3- RUN rm artifacts/*.pdb
42ADD artifacts/* /bin/
53RUN chmod +x /bin/IT.GiteaComment
64CMD "/bin/IT.GiteaComment"
You can’t perform that action at this time.
0 commit comments