-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.09 KB
/
MergeToMain.yml
File metadata and controls
42 lines (37 loc) · 1.09 KB
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: Merge into 'main'
on:
push:
branches: [main]
paths-ignore:
- '.editorconfig'
- 'ReadMe.md'
- 'ChangeLog.md'
- '.github/workflows/PullRequest.yml'
- '.github/workflows/Release.yml'
permissions:
packages: write
env:
DOTNET_NOLOGO: true
jobs:
build_and_test:
name: Build and Test
uses: ./.github/workflows/reusable-build-test.yml
with:
version: ${{ github.run_number }}.0.0-beta
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
build_and_push_docker:
name: Build and Push Docker Image
needs: build_and_test
uses: ./.github/workflows/reusable-docker.yml
with:
dockerfile_path: ./code/WorldDomination.SimpleObservability.Dashboard/Dockerfile
registry: ghcr.io
registry_username: ${{ github.repository_owner }}
image_name: ${{ github.repository_owner }}/dashboard
push: true
tags_config: |
type=raw,value=${{ github.run_number }}.0.0-beta
type=raw,value=beta
secrets:
registry_password: ${{ secrets.GITHUB_TOKEN }}