-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.06 KB
/
develop.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: Develop branch
# Builds all pushes to develop and publishes on the fly
on:
push:
branches:
- 'develop'
pull_request:
branches:
- 'develop'
jobs:
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: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Build and push Docker image api
uses: docker/build-push-action@v1
if: ${{ github.actor != 'dependabot[bot]' }}
with:
username: ${{ secrets.ORG_DOCKER_USER }}
password: ${{ secrets.ORG_DOCKER_PASS }}
dockerfile: Assessments.Frontend.Web/Dockerfile
repository: artsdatabanken/assessments-fe
tags: dev
- name: Post to slack
if: ${{ github.actor != 'dependabot[bot]' }}
run: .github/workflows/slack_dev.sh ${{ secrets.POST_SLACK }}