Skip to content

Commit

Permalink
ci: Update image uuids for pr_check
Browse files Browse the repository at this point in the history
  • Loading branch information
ezr-ondrej committed Oct 11, 2023
1 parent 19c066b commit 14328cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .rhcicd/pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ accountID="3340851"
dbPod=$(oc get pods -o custom-columns=POD:.metadata.name --no-headers | grep 'image-builder-db')

# AWS stub
imageID="506db9be-347f-430d-a26a-82c7b66052bc" # created on 2023-09-25
imageName="hms-pipeline-aws-20230925"
imageID="7819a373-052d-4252-92d0-26d8b9a29d45" # created on 2023-10-09
imageName="hms-pipeline-aws-20231009"

composeRequestAWSJson='{"image_name": "'$imageName'", "distribution": "rhel-92", "customizations": {}, "image_requests": [{"image_type": "aws", "architecture": "x86_64", "upload_request": {"type": "aws", "options": {"share_with_accounts": ["093942615996"]}}}]}'
oc exec $dbPod -- psql -d image-builder -c "INSERT INTO public.composes (job_id, request, created_at, account_number, org_id, image_name, deleted) VALUES
('$imageID', '$composeRequestAWSJson', '$(date +"%Y-%m-%d %T")', '$orgID', '$accountID', '$imageName', false);"

# GCP stub
imageID="f5909d80-1f56-45bc-8ff5-b549374366a4" # created on 2023-09-25
imageName="hms-pipeline-gcp-20230925"
imageID="e740c9b3-7085-4c1c-a4f0-3e79afd439d6" # created on 2023-10-09
imageName="hms-pipeline-gcp-20231009"

composeRequestGCPJson='{"image_name": "'$imageName'", "distribution": "rhel-92", "customizations": {}, "image_requests": [{"image_type": "gcp", "architecture": "x86_64", "upload_request": {"type": "gcp", "options": {"share_with_accounts": ["user:[email protected]"]}}}]}'
oc exec $dbPod -- psql -d image-builder -c "INSERT INTO public.composes (job_id, request, created_at, account_number, org_id, image_name, deleted) VALUES
Expand Down

0 comments on commit 14328cc

Please sign in to comment.