Skip to content

Commit 29d0612

Browse files
authored
1.26 prow jobs (#703)
1 parent 070ee9b commit 29d0612

File tree

5 files changed

+418
-0
lines changed

5 files changed

+418
-0
lines changed
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
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+
################################################################################
16+
# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`.
17+
# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on
18+
# how to add a new Prowjob or update an existing Prowjob.
19+
################################################################################
20+
21+
presubmits:
22+
aws/eks-distro-build-tooling:
23+
- name: eks-distro-base-tooling-presubmits-golang-1-26-al-2
24+
always_run: false
25+
run_if_changed: "eks-distro-base/.*|scripts/setup_public_ecr_push.sh"
26+
max_concurrency: 10
27+
cluster: "prow-presubmits-cluster"
28+
skip_report: false
29+
extra_refs:
30+
- org: eks-distro-pr-bot
31+
repo: eks-distro-build-tooling
32+
base_ref: main
33+
- org: eks-distro-pr-bot
34+
repo: eks-distro
35+
base_ref: main
36+
- org: eks-distro-pr-bot
37+
repo: eks-anywhere
38+
base_ref: main
39+
decoration_config:
40+
gcs_configuration:
41+
bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp
42+
path_strategy: explicit
43+
s3_credentials_secret: s3-credentials
44+
labels:
45+
image-build: "true"
46+
local-registry: "true"
47+
disk-usage: "true"
48+
spec:
49+
serviceaccountName: presubmits-build-account
50+
automountServiceAccountToken: false
51+
containers:
52+
- name: build-container
53+
image: public.ecr.aws/eks-distro-build-tooling/builder-base:minimal-a2dcf95bc5ba6be5990551eb06ae7e1d210ff62e.2
54+
command:
55+
- bash
56+
- -c
57+
- >
58+
trap '(docker buildx rm eks-d-builders || true) && touch /status/done && rm -rf /home/prow/go/src/' EXIT
59+
&&
60+
scripts/buildkit_check.sh
61+
&&
62+
scripts/local_registry_check.sh
63+
&&
64+
scripts/setup_buildx.sh
65+
&&
66+
export DATE_EPOCH=$(date "+%F-%s")
67+
&&
68+
make golang-1.26-compiler-images -C $PROJECT_PATH IMAGE_TAG=${DATE_EPOCH}.${AL_TAG}
69+
&&
70+
make create-pr -C $PROJECT_PATH IMAGE_TAG=${DATE_EPOCH}.${AL_TAG}
71+
env:
72+
- name: PROJECT_PATH
73+
value: "eks-distro-base"
74+
- name: AL_TAG
75+
value: "2"
76+
- name: IMAGE_REPO
77+
value: "localhost:5000"
78+
- name: PLATFORMS
79+
value: "linux/amd64"
80+
- name: BUILDKITD_IMAGE
81+
value: "moby/buildkit:v0.12.3-rootless"
82+
- name: USE_BUILDX
83+
value: "true"
84+
resources:
85+
requests:
86+
memory: "4Gi"
87+
cpu: "1024m"
88+
- name: buildkitd
89+
image: moby/buildkit:v0.12.3-rootless
90+
command:
91+
- sh
92+
args:
93+
- /script/entrypoint.sh
94+
securityContext:
95+
runAsUser: 1000
96+
runAsGroup: 1000
97+
- name: registry
98+
image: public.ecr.aws/docker/library/registry:2
99+
command:
100+
- sh
101+
args:
102+
- /registry-script/entrypoint.sh
103+
readinessProbe:
104+
httpGet:
105+
path: /
106+
port: 5000
107+
initialDelaySeconds: 5
108+
periodSeconds: 3
109+
- command:
110+
- sh
111+
args:
112+
- /disk-usage-script/entrypoint.sh
113+
image: public.ecr.aws/amazonlinux/amazonlinux:2
114+
name: disk-monitor
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
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+
################################################################################
16+
# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`.
17+
# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on
18+
# how to add a new Prowjob or update an existing Prowjob.
19+
################################################################################
20+
21+
presubmits:
22+
aws/eks-distro-build-tooling:
23+
- name: eks-distro-base-tooling-presubmits-golang-1-26-al-2023
24+
always_run: false
25+
run_if_changed: "eks-distro-base/.*|scripts/setup_public_ecr_push.sh"
26+
max_concurrency: 10
27+
cluster: "prow-presubmits-cluster"
28+
skip_report: false
29+
extra_refs:
30+
- org: eks-distro-pr-bot
31+
repo: eks-distro-build-tooling
32+
base_ref: main
33+
- org: eks-distro-pr-bot
34+
repo: eks-distro
35+
base_ref: main
36+
- org: eks-distro-pr-bot
37+
repo: eks-anywhere
38+
base_ref: main
39+
decoration_config:
40+
gcs_configuration:
41+
bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp
42+
path_strategy: explicit
43+
s3_credentials_secret: s3-credentials
44+
labels:
45+
image-build: "true"
46+
local-registry: "true"
47+
disk-usage: "true"
48+
spec:
49+
serviceaccountName: presubmits-build-account
50+
automountServiceAccountToken: false
51+
containers:
52+
- name: build-container
53+
image: public.ecr.aws/eks-distro-build-tooling/builder-base:minimal-a2dcf95bc5ba6be5990551eb06ae7e1d210ff62e.2
54+
command:
55+
- bash
56+
- -c
57+
- >
58+
trap '(docker buildx rm eks-d-builders || true) && touch /status/done && rm -rf /home/prow/go/src/' EXIT
59+
&&
60+
scripts/buildkit_check.sh
61+
&&
62+
scripts/local_registry_check.sh
63+
&&
64+
scripts/setup_buildx.sh
65+
&&
66+
export DATE_EPOCH=$(date "+%F-%s")
67+
&&
68+
make golang-1.26-compiler-images -C $PROJECT_PATH IMAGE_TAG=${DATE_EPOCH}.${AL_TAG}
69+
&&
70+
make create-pr -C $PROJECT_PATH IMAGE_TAG=${DATE_EPOCH}.${AL_TAG}
71+
env:
72+
- name: PROJECT_PATH
73+
value: "eks-distro-base"
74+
- name: AL_TAG
75+
value: "2023"
76+
- name: IMAGE_REPO
77+
value: "localhost:5000"
78+
- name: PLATFORMS
79+
value: "linux/amd64"
80+
- name: BUILDKITD_IMAGE
81+
value: "moby/buildkit:v0.12.3-rootless"
82+
- name: USE_BUILDX
83+
value: "true"
84+
resources:
85+
requests:
86+
memory: "4Gi"
87+
cpu: "1024m"
88+
- name: buildkitd
89+
image: moby/buildkit:v0.12.3-rootless
90+
command:
91+
- sh
92+
args:
93+
- /script/entrypoint.sh
94+
securityContext:
95+
runAsUser: 1000
96+
runAsGroup: 1000
97+
- name: registry
98+
image: public.ecr.aws/docker/library/registry:2
99+
command:
100+
- sh
101+
args:
102+
- /registry-script/entrypoint.sh
103+
readinessProbe:
104+
httpGet:
105+
path: /
106+
port: 5000
107+
initialDelaySeconds: 5
108+
periodSeconds: 3
109+
- command:
110+
- sh
111+
args:
112+
- /disk-usage-script/entrypoint.sh
113+
image: public.ecr.aws/amazonlinux/amazonlinux:2
114+
name: disk-monitor
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
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+
################################################################################
16+
# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`.
17+
# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on
18+
# how to add a new Prowjob or update an existing Prowjob.
19+
################################################################################
20+
21+
postsubmits:
22+
aws/eks-distro-build-tooling:
23+
- name: golang-1-26-PROD-images-tooling-postsubmit
24+
always_run: false
25+
run_if_changed: "eks-distro-base/golang_versions.yaml"
26+
branches:
27+
- ^main$
28+
max_concurrency: 10
29+
error_on_eviction: true
30+
cluster: "prow-postsubmits-cluster"
31+
skip_report: false
32+
decoration_config:
33+
gcs_configuration:
34+
bucket: s3://prowdataclusterstack-316434458-prowbucket7c73355c-1n9f9v93wpjcm
35+
path_strategy: explicit
36+
s3_credentials_secret: s3-credentials
37+
labels:
38+
image-build: "true"
39+
disk-usage: "true"
40+
spec:
41+
serviceaccountName: postsubmits-build-account
42+
automountServiceAccountToken: true
43+
nodeSelector:
44+
arch: AMD64
45+
containers:
46+
- name: build-container
47+
image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-a2dcf95bc5ba6be5990551eb06ae7e1d210ff62e.2
48+
command:
49+
- bash
50+
- -c
51+
- >
52+
trap 'touch /status/done' EXIT
53+
&&
54+
scripts/buildkit_check.sh
55+
&&
56+
make install-deps -C $PROJECT_PATH
57+
&&
58+
projects/golang/go/scripts/prow_release_images.sh
59+
&&
60+
projects/golang/go/scripts/debian_image_release_notification.sh
61+
env:
62+
- name: PROJECT_PATH
63+
value: "projects/golang/go"
64+
- name: GO_SOURCE_VERSION
65+
value: "1.26"
66+
- name: AWS_REGION
67+
value: "us-east-1"
68+
- name: IMAGE_REPO
69+
value: "public.ecr.aws/eks-distro-build-tooling"
70+
- name: ECR_PUBLIC_PUSH_ROLE_ARN
71+
value: "arn:aws:iam::832188789588:role/ECRPublicPushRole"
72+
- name: SNS_TOPIC_ARN
73+
value: "arn:aws:sns:us-east-1:379412251201:eks-golang-image-updates"
74+
- name: ARTIFACT_DEPLOYMENT_ROLE_ARN
75+
value: "arn:aws:iam::379412251201:role/ArtifactDeploymentRole"
76+
resources:
77+
requests:
78+
memory: "2Gi"
79+
cpu: "1"
80+
- name: buildkitd
81+
image: moby/buildkit:v0.12.3-rootless
82+
command:
83+
- sh
84+
args:
85+
- /script/entrypoint.sh
86+
securityContext:
87+
runAsUser: 1000
88+
runAsGroup: 1000
89+
resources:
90+
requests:
91+
memory: "2Gi"
92+
cpu: "1024m"
93+
- command:
94+
- sh
95+
args:
96+
- /disk-usage-script/entrypoint.sh
97+
image: public.ecr.aws/amazonlinux/amazonlinux:2
98+
name: disk-monitor

0 commit comments

Comments
 (0)