generated from pagopa/pagopa-functions-template
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.44 KB
/
pr_ms.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Code Review onboarding-ms
on:
workflow_dispatch:
pull_request:
branches:
- main
- releases/**
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
paths:
- 'apps/onboarding-ms/**'
- '.github/workflows/pr_ms.yml'
- '.github/workflows/call_code_review.yml'
jobs:
code_review:
permissions:
packages: read
uses: ./.github/workflows/call_code_review.yml
name: OnBoarding ms Code Review
secrets: inherit
with:
pr_number: ${{ github.event.pull_request.number }}
source_branch: ${{ github.head_ref }}
target_branch: ${{ github.base_ref }}
sonar_key: 'pagopa_selfcare-onboarding'
module: 'onboarding-ms'
build_docker:
name: 'Build Docker image'
runs-on: ubuntu-20.04
permissions:
packages: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
name: Checkout
- name: Setup Docker buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
- name: Build Image
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 #v5.1.0
with:
context: .
file: ./apps/onboarding-ms/Dockerfile
push: false
secrets: |
GH_TOKEN=${{ secrets.READ_PACKAGES_TOKEN }}
cache-from: type=gha
cache-to: type=gha,mode=min