From 4e3d382e3c52970bab0d3fba927f6ea70c52d83a Mon Sep 17 00:00:00 2001 From: MichalKalke Date: Mon, 1 Jul 2024 11:17:42 +0200 Subject: [PATCH 1/2] Serverless operator build job --- .../workflows/serverless-operator-build.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/serverless-operator-build.yaml diff --git a/.github/workflows/serverless-operator-build.yaml b/.github/workflows/serverless-operator-build.yaml new file mode 100644 index 000000000..3de71bbe9 --- /dev/null +++ b/.github/workflows/serverless-operator-build.yaml @@ -0,0 +1,23 @@ +name: pull-serverless-operator-build + +on: + 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: + uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main + with: + name: serverless-operator/ga + dockerfile: components/operator/Dockerfile + context: . + test-image: + runs-on: ubuntu-latest + needs: build-image + steps: + - name: Test image + run: echo "Testing images ${{ needs.build-image.outputs.images }}" \ No newline at end of file From 1851ba2975257840dfcf5f680ec971dc325a4dc3 Mon Sep 17 00:00:00 2001 From: MichalKalke Date: Mon, 1 Jul 2024 12:00:53 +0200 Subject: [PATCH 2/2] Serverless operator build job trigger --- components/operator/internal/registry/node_port_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/operator/internal/registry/node_port_test.go b/components/operator/internal/registry/node_port_test.go index 9965b8d36..086868d47 100644 --- a/components/operator/internal/registry/node_port_test.go +++ b/components/operator/internal/registry/node_port_test.go @@ -32,7 +32,7 @@ func TestNodePortAction(t *testing.T) { givenService: fixtureServiceNodePort(dockerRegistryService, kymaNamespace, nonConflictPort), expectedPort: nonConflictPort, }, - "Return default port new port when nodePort not installed, without port conflict": { + "Return default port new port when nodePort not installed test, without port conflict": { expectedPort: dockerRegistryNodePort, }, "Generate new port when nodePort not installed, with port conflict": {