jobName: eks-distro-base-tooling-postsubmit-al-{{ .alVersion }}
runIfChanged: ^eks-distro-base/postsubmit_trigger$
imageBuild: true
prCreation: true
architecture: AMD64
useDockerBuildX: true
useMinimalBuilderBase: true
automountServiceAccountToken: true
commands:
- export DATE_EPOCH=$(date "+%F-%s")
- source scripts/setup_public_ecr_push.sh
- make release -C $PROJECT_PATH IMAGE_TAG=${DATE_EPOCH}.${AL_TAG}
- make create-pr -C $PROJECT_PATH IMAGE_TAG=${DATE_EPOCH}.${AL_TAG}
projectPath: eks-distro-base
envVars:
- name: AL_TAG
  value: {{ .alVersion }}
- 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: OUTPUT_DEBUG_LOG
  value: true
- name: CREATE_BUILDER_PODS
  value: true
extraRefs:
- 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
resources:
  requests:
    cpu: "4"
    memory: 16Gi
timeout: 8h
