-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.05 KB
/
main.yml
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
name: CI
on:
push:
branches: ["master"]
workflow_dispatch:
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Get the code
uses: actions/[email protected]
- name: Install .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0'
- name: Restore dependencies
run: dotnet restore
- name: Build the project
run: dotnet build --configuration Release
- name: Run xUnit tests
run: dotnet test --configuration Release --no-build
- name: Docker Auth
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PWD }}
- name: Second step, build and push Docker images
uses: docker/[email protected]
with:
context: .
file: ./dockerfile
push: true
tags: |
raphsodyz/future-space_the-spacedevs:${{ github.run_number }}
raphsodyz/future-space_the-spacedevs:latest