-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.16 KB
/
ci.yaml
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
- name: Restore dependencies
working-directory: ./GameBoulette
run: dotnet restore
- name: Build
working-directory: ./GameBoulette
run: dotnet build --no-restore
#- name: Test
# run: dotnet test --no-build --verbosity normal
containerize:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
logout: true
- name: Build and push Docker images
uses: docker/[email protected]
with:
file: ./GameBoulette/GameBoulette.Server/Dockerfile
context: ./GameBoulette
tags: |
maxthom/game-boulette:latest
maxthom/game-boulette:${{ github.run_id }}
push: true