-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (36 loc) · 1.12 KB
/
auth-server-ci.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
43
44
45
name: auth-server NET Core Build
#on:
# push:
# branches: [ main ]
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./project-sources/dotnet/ReservationAuthServer
env:
APP_VERSION: "${{ secrets.APP_VERSION }}"
steps:
- name: Checkout auth-server code
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Publish
run: dotnet publish -c Release -o out/Release/publish
- name: Docker Build and Push
uses: mr-smithers-excellent/docker-build-push@v5
with:
image: zbalogh/reservation-dotnet-auth-server
tags: latest, ${{ env.APP_VERSION }}
registry: docker.io
directory: project-sources/dotnet/ReservationAuthServer
dockerfile: project-sources/dotnet/ReservationAuthServer/Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}