Skip to content

Fix provisioner build triggers (#3474) #1

Fix provisioner build triggers (#3474)

Fix provisioner build triggers (#3474) #1

Workflow file for this run

name: Provisioner Build
on:
push:
branches:
- main
paths:
- components/provisioner/**
- .github/workflows/provisioner.yaml
pull_request_target:
types: [opened, synchronize, reopened]
paths:
- components/provisioner/**
- .github/workflows/provisioner.yaml
permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout
jobs:
build-image:

Check failure on line 22 in .github/workflows/provisioner.yaml

View workflow run for this annotation

GitHub Actions / Provisioner Build

Invalid workflow file

The workflow is not valid. .github/workflows/provisioner.yaml (Line: 22, Col: 3): The workflow must contain at least one job with no dependencies.
needs: setup
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: control-plane/provisioner
dockerfile: Dockerfile
context: ./components/provisioner
summary:
runs-on: ubuntu-latest
needs: [build-image]
if: success() || failure()
steps:
- name: "Generate summary"
run: |
{
echo '# Kyma Infrastructure Manager'
# if build-image was successful
if [ "${{ needs.build-image.result }}" == "success" ]; then
printf '\n\n## Image\n'
printf '\n```json\n'
echo '${{ needs.build-image.outputs.images }}' | jq
printf '\n```\n'
fi
} >> $GITHUB_STEP_SUMMARY