|
| 1 | +# Copyright 2025 The KCP Authors. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +presubmits: |
| 16 | + - name: pull-api-syncagent-verify |
| 17 | + always_run: true |
| 18 | + decorate: true |
| 19 | + clone_uri: "https://github.com/kcp-dev/api-syncagent" |
| 20 | + labels: |
| 21 | + preset-goproxy: "true" |
| 22 | + spec: |
| 23 | + containers: |
| 24 | + - image: ghcr.io/kcp-dev/infra/build:1.23.4-3 |
| 25 | + command: |
| 26 | + - hack/ci/verify.sh |
| 27 | + resources: |
| 28 | + requests: |
| 29 | + memory: 1Gi |
| 30 | + cpu: 1 |
| 31 | + |
| 32 | + - name: pull-api-syncagent-lint |
| 33 | + always_run: true |
| 34 | + decorate: true |
| 35 | + clone_uri: "https://github.com/kcp-dev/api-syncagent" |
| 36 | + labels: |
| 37 | + preset-goproxy: "true" |
| 38 | + spec: |
| 39 | + containers: |
| 40 | + - image: ghcr.io/kcp-dev/infra/build:1.23.4-3 |
| 41 | + command: |
| 42 | + - make |
| 43 | + - lint |
| 44 | + resources: |
| 45 | + requests: |
| 46 | + memory: 4Gi |
| 47 | + cpu: 2 |
| 48 | + |
| 49 | + - name: pull-api-syncagent-build-image |
| 50 | + always_run: true |
| 51 | + decorate: true |
| 52 | + clone_uri: "https://github.com/kcp-dev/api-syncagent" |
| 53 | + labels: |
| 54 | + preset-goproxy: "true" |
| 55 | + spec: |
| 56 | + containers: |
| 57 | + - image: quay.io/containers/buildah:v1.30.0 |
| 58 | + command: |
| 59 | + - hack/ci/build-image.sh |
| 60 | + env: |
| 61 | + - name: DRY_RUN |
| 62 | + value: '1' |
| 63 | + # docker-in-docker needs privileged mode |
| 64 | + securityContext: |
| 65 | + privileged: true |
| 66 | + resources: |
| 67 | + requests: |
| 68 | + memory: 1Gi |
| 69 | + cpu: 1 |
| 70 | + |
| 71 | + - name: pull-api-syncagent-test |
| 72 | + always_run: true |
| 73 | + decorate: true |
| 74 | + clone_uri: "https://github.com/kcp-dev/api-syncagent" |
| 75 | + labels: |
| 76 | + preset-goproxy: "true" |
| 77 | + spec: |
| 78 | + containers: |
| 79 | + - image: ghcr.io/kcp-dev/infra/build:1.23.4-3 |
| 80 | + command: |
| 81 | + - make |
| 82 | + - test |
| 83 | + env: |
| 84 | + - name: USE_GOTESTSUM |
| 85 | + value: '1' |
| 86 | + resources: |
| 87 | + requests: |
| 88 | + memory: 4Gi |
| 89 | + cpu: 2 |
0 commit comments