-
Notifications
You must be signed in to change notification settings - Fork 112
46 lines (40 loc) · 1.25 KB
/
provisioner.yaml
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
name: Provisioner Build
on:
push:
branches:
- main
paths:
- components/provisioner/**
- .github/workflows/provisioner.yaml
pull_request_target:
types: [opened, synchronize, reopened]
paths:
- components/provisioner/**
- .github/workflows/provisioner.yaml
permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout
jobs:
build-image:
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: control-plane/provisioner
dockerfile: Dockerfile
context: ./components/provisioner
summary:
runs-on: ubuntu-latest
needs: [build-image]
if: success() || failure()
steps:
- name: "Generate summary"
run: |
{
echo '# Kyma Infrastructure Manager'
# if build-image was successful
if [ "${{ needs.build-image.result }}" == "success" ]; then
printf '\n\n## Image\n'
printf '\n```json\n'
echo '${{ needs.build-image.outputs.images }}' | jq
printf '\n```\n'
fi
} >> $GITHUB_STEP_SUMMARY