-
Notifications
You must be signed in to change notification settings - Fork 50
48 lines (45 loc) · 1.27 KB
/
busola-build.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
name: Busola Build
on:
workflow_call:
inputs:
tag:
description: "Additional tag for built images"
required: true
type: string
push:
branches:
- main
paths:
- ".github/workflows/busola-build.yml"
- "backend/**"
- "kyma/**"
- "public/**"
- "src/**"
- "package.json"
- "Makefile"
- "Dockerfile"
- "nginx/nginx.conf"
pull_request_target:
types: [opened, edited, synchronize, reopened, ready_for_review]
paths:
- ".github/workflows/busola-build.yml"
- "kyma/**"
- "backend/**"
- "public/**"
- "src/**"
- "package.json"
- "Makefile"
- "Dockerfile"
- "nginx/nginx.conf"
permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout
jobs:
build-busola-image:
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
if: github.event.pull_request.draft == false
with:
name: busola
dockerfile: Dockerfile
tags: ${{ inputs.tag != '' && inputs.tag || 'latest' }}
build-args: ${{ inputs.tag != '' && format('tag={0}', inputs.tag) || '' }}