generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 21
98 lines (88 loc) · 3.71 KB
/
build-release.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: release serverless build
on:
push:
tags:
- '^v?\d+\.\d+\.\d+(?:-.*)?$'
permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout
jobs:
compute-tag:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.get_tag.outputs.TAG }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get the latest tag
id: get_tag
run: echo ::set-output name=TAG::${{ github.sha }}
build-operator:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: serverless-operator
dockerfile: components/operator/Dockerfile
build-arg: PURPOSE=release
tags: ${{ needs.compute-tag.outputs.tag }}
build-serverless-controller:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-controller
dockerfile: components/serverless/deploy/manager/Dockerfile
tags: ${{ needs.compute-tag.outputs.tag }}
build-serverless-webhook:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-webhook
dockerfile: components/serverless/deploy/webhook/Dockerfile
tags: ${{ needs.compute-tag.outputs.tag }}
build-serverless-jobinit:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-build-init
dockerfile: components/serverless/deploy/jobinit/Dockerfile
tags: ${{ needs.compute-tag.outputs.tag }}
build-nodejs18:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-runtime-nodejs18
dockerfile: nodejs18/Dockerfile
context: components/runtimes/nodejs
tags: ${{ needs.compute-tag.outputs.tag }}
build-nodejs20:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-runtime-nodejs20
dockerfile: nodejs20/Dockerfile
context: components/runtimes/nodejs
tags: ${{ needs.compute-tag.outputs.tag }}
build-python39-legacy:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-runtime-python39
dockerfile: python39/Dockerfile
context: components/runtimes/python
tags: ${{ needs.compute-tag.outputs.tag }}
build-python39:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-runtime-python39
dockerfile: python39/Dockerfile
context: components/runtimes/python
tags: ${{ needs.compute-tag.outputs.tag }}
build-python312:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-runtime-python312
dockerfile: python312/Dockerfile
context: components/runtimes/python
tags: ${{ needs.compute-tag.outputs.tag }}