-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create periodic for checking and updating golang minimal images
- Loading branch information
Showing
2 changed files
with
162 additions
and
0 deletions.
There are no files selected for viewing
116 changes: 116 additions & 0 deletions
116
jobs/aws/eks-distro-build-tooling/check_upstream_golang_release.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
################################################################################ | ||
# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`. | ||
# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on | ||
# how to add a new Prowjob or update an existing Prowjob. | ||
################################################################################ | ||
|
||
periodics: | ||
- name: check-upstream-golang-release | ||
cron: "0 7,14 * * 1-5" | ||
cluster: "prow-postsubmits-cluster" | ||
error_on_eviction: true | ||
extra_refs: | ||
- org: aws | ||
repo: eks-distro-build-tooling | ||
base_ref: main | ||
- org: eks-distro-pr-bot | ||
repo: eks-distro-build-tooling | ||
base_ref: main | ||
- org: eks-distro-pr-bot | ||
repo: eks-distro | ||
base_ref: main | ||
- org: eks-distro-pr-bot | ||
repo: eks-anywhere-build-tooling | ||
base_ref: main | ||
- org: eks-distro-pr-bot | ||
repo: eks-anywhere | ||
base_ref: main | ||
decoration_config: | ||
timeout: 8h | ||
gcs_configuration: | ||
bucket: s3://prowdataclusterstack-316434458-prowbucket7c73355c-1n9f9v93wpjcm | ||
path_strategy: explicit | ||
s3_credentials_secret: s3-credentials | ||
labels: | ||
image-build: "true" | ||
pr-creation: "true" | ||
disk-usage: "true" | ||
spec: | ||
serviceaccountName: postsubmits-build-account | ||
automountServiceAccountToken: true | ||
nodeSelector: | ||
arch: AMD64 | ||
containers: | ||
- name: build-container | ||
image: public.ecr.aws/eks-distro-build-tooling/builder-base:minimal-9be578bba75e08f01086ce11820e3ab6cdf63601.2 | ||
command: | ||
- bash | ||
- -c | ||
- > | ||
trap '(docker buildx rm eks-d-builders || true) && touch /status/done' EXIT | ||
&& | ||
scripts/buildkit_check.sh | ||
&& | ||
scripts/setup_buildx.sh | ||
&& | ||
export DATE_EPOCH=$(date "+%F-%s") | ||
&& | ||
source scripts/setup_public_ecr_push.sh | ||
&& | ||
make check-golang-release -C builder-base | ||
&& | ||
make check-golang-release -C eks-distro-base | ||
&& | ||
make create-golang-release-pr -C eks-distro-base | ||
env: | ||
- name: PROJECT_PATH | ||
value: "eks-distro-base" | ||
- name: IMAGE_REPO | ||
value: "public.ecr.aws/eks-distro-build-tooling" | ||
- name: ECR_PUBLIC_PUSH_ROLE_ARN | ||
value: "arn:aws:iam::832188789588:role/ECRPublicPushRole" | ||
- name: AWS_REGION | ||
value: "us-east-1" | ||
- name: REPO_OWNER | ||
value: "aws" | ||
- name: OUTPUT_DEBUG_LOG | ||
value: "true" | ||
- name: CREATE_BUILDER_PODS | ||
value: "true" | ||
- name: BUILDKITD_IMAGE | ||
value: "moby/buildkit:v0.12.3-rootless" | ||
- name: USE_BUILDX | ||
value: "true" | ||
- name: buildkitd | ||
image: moby/buildkit:v0.12.3-rootless | ||
command: | ||
- sh | ||
args: | ||
- /script/entrypoint.sh | ||
securityContext: | ||
runAsUser: 1000 | ||
runAsGroup: 1000 | ||
resources: | ||
requests: | ||
memory: "2Gi" | ||
cpu: "1024m" | ||
- command: | ||
- sh | ||
args: | ||
- /disk-usage-script/entrypoint.sh | ||
image: public.ecr.aws/amazonlinux/amazonlinux:2 | ||
name: disk-monitor |
46 changes: 46 additions & 0 deletions
46
templater/jobs/periodic/eks-distro-build-tooling/check_upstream_golang_release.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
jobName: check-upstream-golang-release | ||
cronExpression: 0 7,14 * * 1-5 | ||
imageBuild: true | ||
prCreation: true | ||
architecture: AMD64 | ||
useDockerBuildX: true | ||
useMinimalBuilderBase: true | ||
automountServiceAccountToken: true | ||
serviceAccountName: postsubmits-build-account | ||
commands: | ||
- export DATE_EPOCH=$(date "+%F-%s") | ||
- source scripts/setup_public_ecr_push.sh | ||
- make check-golang-release -C builder-base | ||
- make check-golang-release -C eks-distro-base | ||
- make create-golang-release-pr -C eks-distro-base | ||
projectPath: eks-distro-base | ||
envVars: | ||
- name: IMAGE_REPO | ||
value: public.ecr.aws/eks-distro-build-tooling | ||
- name: ECR_PUBLIC_PUSH_ROLE_ARN | ||
value: arn:aws:iam::832188789588:role/ECRPublicPushRole | ||
- name: AWS_REGION | ||
value: us-east-1 | ||
- name: REPO_OWNER | ||
value: aws | ||
- name: OUTPUT_DEBUG_LOG | ||
value: true | ||
- name: CREATE_BUILDER_PODS | ||
value: true | ||
extraRefs: | ||
- baseRef: main | ||
org: aws | ||
repo: eks-distro-build-tooling | ||
- baseRef: main | ||
org: eks-distro-pr-bot | ||
repo: eks-distro-build-tooling | ||
- baseRef: main | ||
org: eks-distro-pr-bot | ||
repo: eks-distro | ||
- baseRef: main | ||
org: eks-distro-pr-bot | ||
repo: eks-anywhere-build-tooling | ||
- baseRef: main | ||
org: eks-distro-pr-bot | ||
repo: eks-anywhere | ||
timeout: 8h |