-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (39 loc) · 1.04 KB
/
Dev.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
name: pwa_test_Ci
on:
push:
branches:
- Dev
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
working-directory: ./PhotoWallArt/src/Host/
run: dotnet restore
- name: Build
working-directory: ./PhotoWallArt/src/Host/
run: dotnet build --no-restore
docker:
name: Docker Build & Push
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Image
working-directory: ./PhotoWallArt/src/Host/
run: dotnet publish -c Release -p:ContainerImageName=${{ secrets.DOCKER_USERNAME }}/pwa_test
- name: Push Image
run: docker push ${{ secrets.DOCKER_USERNAME }}/pwa_test --all-tags