-
Notifications
You must be signed in to change notification settings - Fork 50
46 lines (43 loc) · 1.25 KB
/
busola-web-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
name: Busola Web Build
on:
workflow_call:
inputs:
tag:
description: "Additional tag for built images"
required: true
type: string
push:
branches:
- main
paths:
- ".github/workflows/busola-web-build.yml"
- "kyma/**"
- "public/**"
- "src/**"
- "package.json"
- "Makefile"
- "Dockerfile.web"
- "nginx/nginx.conf"
pull_request_target:
types: [opened, edited, synchronize, reopened, ready_for_review]
paths:
- ".github/workflows/busola-web-build.yml"
- "kyma/**"
- "public/**"
- "src/**"
- "package.json"
- "Makefile"
- "Dockerfile.web"
- "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-web-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-web
dockerfile: Dockerfile.web
tags: ${{ inputs.tag != '' && inputs.tag || 'latest' }}
build-args: ${{ inputs.tag != '' && format('tag={0}', inputs.tag) || '' }}