Skip to content

chore: splits image build into steps #918

chore: splits image build into steps

chore: splits image build into steps #918

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