@@ -761,6 +761,46 @@ postsubmits:
761
761
- --scratch-bucket=gs://k8s-staging-sig-storage-gcb
762
762
- --env-passthrough=PULL_BASE_REF
763
763
- .
764
+ kubernetes-sigs/cosi-driver-sample :
765
+ - name : post-cosi-driver-sample-push-images
766
+ rerun_auth_config :
767
+ github_team_slugs :
768
+ - org : kubernetes
769
+ slug : release-managers
770
+ - org : kubernetes
771
+ slug : test-infra-admins
772
+ - org : kubernetes
773
+ slug : sig-storage-image-build-admins
774
+ cluster : k8s-infra-prow-build-trusted
775
+ annotations :
776
+ testgrid-dashboards : sig-storage-image-build, sig-k8s-infra-gcb
777
+ decorate : true
778
+ decoration_config :
779
+ timeout : 240m
780
+ grace_period : 15m
781
+ branches :
782
+ # For publishing canary images.
783
+ - ^master$
784
+ - ^release-
785
+ # For publishing tagged images. Those will only get built once, i.e.
786
+ # existing images are not getting overwritten. A new tag must be set to
787
+ # trigger another image build. Images are only built for tags that follow
788
+ # the semver format (regex from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string).
789
+ - ^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-]+)*))?$
790
+ spec :
791
+ serviceAccountName : gcb-builder
792
+ containers :
793
+ - image : gcr.io/k8s-staging-test-infra/image-builder:v20241224-fe22c549c1
794
+ command :
795
+ - /run.sh
796
+ args :
797
+ # this is the project GCB will run in, which is the same as the GCR
798
+ # images are pushed to.
799
+ - --project=k8s-staging-sig-storage
800
+ # This is the same as above, but with -gcb appended.
801
+ - --scratch-bucket=gs://k8s-staging-sig-storage-gcb
802
+ - --env-passthrough=PULL_BASE_REF
803
+ - .
764
804
kubernetes-csi/csi-proxy :
765
805
- name : post-csi-proxy-push-images
766
806
rerun_auth_config :
@@ -1401,3 +1441,34 @@ periodics:
1401
1441
- --scratch-bucket=gs://k8s-staging-sig-storage-gcb
1402
1442
- --env-passthrough=PULL_BASE_REF
1403
1443
- .
1444
+ - name : canary-cosi-driver-sample-push-images
1445
+ cluster : k8s-infra-prow-build-trusted
1446
+ annotations :
1447
+ testgrid-dashboards : sig-storage-image-build, sig-k8s-infra-gcb
1448
+ decorate : true
1449
+ interval : 168h # one week
1450
+ extra_refs :
1451
+ # This also becomes the current directory for run.sh and thus
1452
+ # the cloud image build.
1453
+ - org : kubernetes-sigs
1454
+ repo : cosi-driver-sample
1455
+ base_ref : master
1456
+ spec :
1457
+ serviceAccountName : gcb-builder
1458
+ containers :
1459
+ - image : gcr.io/k8s-staging-test-infra/image-builder:v20241224-fe22c549c1
1460
+ command :
1461
+ - /run.sh
1462
+ env :
1463
+ # We need to emulate a pull job for the cloud build to work the same
1464
+ # way as it usually does.
1465
+ - name : PULL_BASE_REF
1466
+ value : master
1467
+ args :
1468
+ # this is the project GCB will run in, which is the same as the GCR
1469
+ # images are pushed to.
1470
+ - --project=k8s-staging-sig-storage
1471
+ # This is the same as above, but with -gcb appended.
1472
+ - --scratch-bucket=gs://k8s-staging-sig-storage-gcb
1473
+ - --env-passthrough=PULL_BASE_REF
1474
+ - .
0 commit comments