-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (47 loc) · 1.4 KB
/
nightly-deploy.yml
File metadata and controls
60 lines (47 loc) · 1.4 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Nightly Build
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
jobs:
nightly:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Restore Dependencies
run: dotnet restore
- name: Build .NET Project
run: dotnet build --configuration Release
- name: Run Tests
run: dotnet test --configuration Release
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Frontend Dependencies
working-directory: src/LogPort.UI
run: npm ci
- name: Build Frontend
working-directory: src/LogPort.UI
run: npm run build
- name: Set Nightly Docker Tag
run: echo "IMAGE_TAG=nightly" >> $GITHUB_ENV
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and Push Nightly Docker Image
uses: docker/build-push-action@v5
with:
context: .
file: ./src/LogPort.Agent/Dockerfile
push: true
tags: thiagomvas/logport:${{ env.IMAGE_TAG }}