generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 15
33 lines (30 loc) · 1.06 KB
/
cloud-manager-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
name: Cloud-Manager Build
on:
push:
branches:
- main
tags:
- "*"
pull_request_target:
types: [opened, edited, synchronize, reopened, ready_for_review]
permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout
jobs:
build-image:
steps:
- name: Build image main or tag
if: github.event_name != 'pull_request_target'
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
tags: ${{ github.ref_name }}
name: cloud-manager
dockerfile: Dockerfile
export-tags: true
- name: Build image on PR
if: github.event_name != 'pull_request_target'
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: cloud-manager
dockerfile: Dockerfile
export-tags: true