Skip to content

Commit eb1aeb9

Browse files
Create docker_release.yml
1 parent 5f5b74d commit eb1aeb9

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/docker_release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 }}

0 commit comments

Comments
 (0)