File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Upload (latest release)
2
+
3
+ on :
4
+ deployment
5
+ # Runs when a new release is published
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ timeout-minutes : 15
11
+ env :
12
+ DOCKER_USER : ${{ vars.DOCKER_USERNAME }}
13
+ DOCKER_TOKEN : ${{ secrets.DOCKER_TOKEN }}
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v4
17
+ - name : Set up .NET
18
+ uses : actions/setup-dotnet@v4
19
+ with :
20
+ dotnet-version : 8.0.x
21
+ - name : Restore dependencies
22
+ run : dotnet restore ./FlashLFQ.sln
23
+ - name : Build (CMD)
24
+ run : dotnet publish /p:Configuration=Release ./CMD/CMD.csproj -f net8.0
25
+ - name : Login to Docker Hub
26
+ uses : docker/login-action@v3
27
+ with :
28
+ username : ${{ vars.DOCKER_USERNAME }}
29
+ password : ${{ secrets.DOCKER_TOKEN }}
30
+ - name : Build and push
31
+ uses : docker/build-push-action@v6
32
+ with :
33
+ context : " /home/runner/work/FlashLFQ/FlashLFQ"
34
+ push : true
35
+ tags : smithchemwisc/flashlfq:dev , smithchemwisc/flashlfq:${{ github.event.release.tag_name }}
You can’t perform that action at this time.
0 commit comments