Skip to content

Commit

Permalink
chore: splits image build into steps
Browse files Browse the repository at this point in the history
  • Loading branch information
vandjelk committed Nov 22, 2024
1 parent f1b4bc5 commit 27e76cd
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/cloud-manager-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,19 @@ permissions:

jobs:
build-image:
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
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

0 comments on commit 27e76cd

Please sign in to comment.