k8s.io/registry.k8s.io@v0.3.1/cloudbuild.yaml (about)

     1  # See https://cloud.google.com/cloud-build/docs/build-config
     2  options:
     3    machineType: E2_HIGHCPU_8
     4  steps:
     5    - id: build-image
     6      name: gcr.io/cloud-builders/docker
     7      entrypoint: "/usr/bin/make"
     8      args:
     9        - "push-images"
    10        - "TAG=$_GIT_TAG"
    11    - id: clone-k8s.io
    12      name: gcr.io/cloud-builders/git
    13      entrypoint: git
    14      args:
    15      - clone
    16      - --filter=tree:0
    17      - https://github.com/kubernetes/k8s.io
    18      - /k8s.io
    19      volumes:
    20      # make deploy assumes k8s.io will be at ./../k8s.io
    21      # default working dir in cloudbuild is /workspace
    22      - name: 'k8sio'
    23        path: '/k8s.io'
    24      # run immediately
    25      waitFor: ['-']
    26    - id: deploy-staging
    27      name: "gcr.io/k8s-staging-infra-tools/k8s-infra:v20220912-7d7ed3258@sha256:48fb967be4c36da551584c3004330c7ce37568e4226ea7233eeb08c979374bc6"
    28      entrypoint: "/usr/bin/make"
    29      volumes:
    30      - name: 'k8sio'
    31        path: '/k8s.io'
    32      args:
    33        - "deploy"
    34        - "TAG=$_GIT_TAG"
    35        - "CLOUDBUILD_SET_PROJECT=k8s-infra-oci-proxy"
    36      waitFor:
    37        - build-image
    38        - clone-k8s.io
    39    # run quick e2e-tests immediately following deployment, aside from the assorted
    40    # testgrid reported periodic results
    41    - id: test-staging
    42      name: "gcr.io/k8s-staging-infra-tools/k8s-infra:v20220912-7d7ed3258@sha256:48fb967be4c36da551584c3004330c7ce37568e4226ea7233eeb08c979374bc6"
    43      entrypoint: "/usr/bin/make"
    44      args:
    45        - "e2e-test"
    46      waitFor:
    47        - deploy-staging
    48  substitutions:
    49    # variables set by kubernetes/test-infra/images/builder
    50    # set by image-builder to vYYYYMMDD-hash
    51    _GIT_TAG: "12345"