forked from smith-chem-wisc/FlashLFQ
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.18 KB
/
Copy pathbuild.yml
File metadata and controls
45 lines (41 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
DOCKER_USER: ${{ vars.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
env:
DOCKER_USER: ${{ vars.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ./FlashLFQ.sln
- name: Build (CMD)
run: dotnet publish /p:Configuration=Release ./CMD/CMD.csproj -f net8.0
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# env:
# DOCKER_USER: ${{ vars.DOCKER_USERNAME }}
# DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
# with:
# username: ${{ vars.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: "/home/runner/work/FlashLFQ/FlashLFQ"
push: true
tags: smithchemwisc/flashlfq:dev