chore: splits image build into steps #918
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |