From 6ef5347d4d0c3bcb19a88e2dba9c808487f15296 Mon Sep 17 00:00:00 2001 From: Wojciech Nawa Date: Fri, 6 Sep 2024 12:04:42 +0200 Subject: [PATCH] Migrate provisioner build (#3471) --- .github/workflows/provisioner.yaml | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/provisioner.yaml diff --git a/.github/workflows/provisioner.yaml b/.github/workflows/provisioner.yaml new file mode 100644 index 0000000000..234a655032 --- /dev/null +++ b/.github/workflows/provisioner.yaml @@ -0,0 +1,45 @@ +name: Provisioner Build + +on: + push: + branches: + - main + paths: + - ./components/provisioner/** + + pull_request_target: + types: [opened, synchronize, reopened] + paths: + - ./components/provisioner/** + +permissions: + id-token: write # This is required for requesting the JWT token + contents: read # This is required for actions/checkout + +jobs: + build-image: + 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