k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/jobs/image-pushing/k8s-staging-kustomize.yaml (about)

     1  postsubmits:
     2    # This is the github repo we'll build from. This block needs to be repeated
     3    # for each repo.
     4    kubernetes-sigs/kustomize:
     5      # The name should be changed to match the repo name above
     6      - name: post-kustomize-push-images
     7        cluster: k8s-infra-prow-build-trusted
     8        annotations:
     9          # This is the name of some testgrid dashboard to report to.
    10          # If this is the first one for your sig, you may need to create one
    11          testgrid-dashboards: sig-cli-misc, sig-k8s-infra-gcb
    12          testgrid-tab-name: kustomize-pushing-image
    13          testgrid-alert-email: donnyxia@google.com
    14        decorate: true
    15        # this causes the job to only run on the master branch. Remove it if your
    16        # job makes sense on every branch (unless it's setting a `latest` tag it
    17        # probably does).
    18        branches:
    19          - ^master$
    20          # this is a regex for semver, plus "kustomize/" prefix,
    21          # from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
    22          - ^kustomize/v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
    23        spec:
    24          serviceAccountName: gcb-builder
    25          containers:
    26            - image: gcr.io/k8s-staging-test-infra/image-builder:v20230711-e33377c2b4
    27              command:
    28                - /run.sh
    29              args:
    30                # this is the project GCB will run in, which is the same as the GCR
    31                # images are pushed to.
    32                - --project=k8s-staging-kustomize
    33                # This is the same as above, but with -gcb appended.
    34                - --scratch-bucket=gs://k8s-staging-kustomize-gcb
    35                - --env-passthrough=PULL_BASE_REF
    36                - --with-git-dir
    37                - --gcb-config=releasing/cloudbuild_kustomize_image.yaml
    38                - .