From 6ded4048496c18b877c434fa07ef19956d0a1098 Mon Sep 17 00:00:00 2001 From: Jacinta Callahan Date: Fri, 21 Feb 2025 21:38:19 +0000 Subject: [PATCH] Temporarily bypass SHA check for clean demo deploy --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ae8b38d254..a88b4abd628 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1337,6 +1337,7 @@ build_push_app_dp3: if [ -f sha_check_status ] && grep -q "failed" sha_check_status; then echo "Deploy halted due to SHA check failure."; exit 0; + fi - echo "Building and Pushing app Docker image..." - /kaniko/executor --context "${CI_PROJECT_DIR}/" --dockerfile "${CI_PROJECT_DIR}/${APP_DOCKER_FILE}" --destination "${ECR_REPOSITORY_URI}/app:git-$CI_COMMIT_SHORT_SHA" after_script: @@ -1366,6 +1367,7 @@ build_push_migrations_dp3: if [ -f sha_check_status ] && grep -q "failed" sha_check_status; then echo "Deploy halted due to SHA check failure."; exit 0; + fi - echo "Building and Pushing migrations Docker image..." - /kaniko/executor --context "${CI_PROJECT_DIR}/" --dockerfile "${CI_PROJECT_DIR}/Dockerfile.migrations" --destination "${ECR_REPOSITORY_URI}/app-migrations:git-$CI_COMMIT_SHORT_SHA" after_script: @@ -1395,6 +1397,7 @@ build_push_tasks_dp3: if [ -f sha_check_status ] && grep -q "failed" sha_check_status; then echo "Deploy halted due to SHA check failure."; exit 0; + fi - echo "Building tasks Docker image..." - /kaniko/executor --context "${CI_PROJECT_DIR}/" --dockerfile "${CI_PROJECT_DIR}/${TASK_DOCKER_FILE}" --destination "${ECR_REPOSITORY_URI}/app-tasks:git-$CI_COMMIT_SHORT_SHA" after_script: @@ -1423,6 +1426,7 @@ push_otel_collector_image_dp3: if [ -f sha_check_status ] && grep -q "failed" sha_check_status; then echo "Deploy halted due to SHA check failure."; exit 0; + fi - echo "Logging in to DockerHub with Crane..." - echo "${DOCKERHUB_PASSWORD}" | crane auth login docker.io -u "${DOCKERHUB_USERNAME}" --password-stdin @@ -1466,6 +1470,7 @@ deploy_migrations_dp3: if [ -f sha_check_status ] && grep -q "failed" sha_check_status; then echo "Deploy halted due to SHA check failure."; exit 0; + fi # Step 1: Get the Digest - echo "Getting Digest from AWS" - export ECR_DIGEST=$(aws ecr describe-images --repository-name app-migrations --image-ids imageTag=git-$CI_COMMIT_SHORT_SHA --query 'imageDetails[0].imageDigest' --output text) @@ -1503,6 +1508,7 @@ deploy_tasks_dp3: if [ -f sha_check_status ] && grep -q "failed" sha_check_status; then echo "Deploy halted due to SHA check failure."; exit 0; + fi - echo "Getting Digest from AWS" - export ECR_DIGEST=$(aws ecr describe-images --repository-name app-tasks --image-ids imageTag=git-$CI_COMMIT_SHORT_SHA --query 'imageDetails[0].imageDigest' --output text) - echo "Deploying GHC fuel price data task service" @@ -1541,6 +1547,7 @@ deploy_app_client_tls_dp3: if [ -f sha_check_status ] && grep -q "failed" sha_check_status; then echo "Deploy halted due to SHA check failure."; exit 0; + fi # - echo "Comparing against deployed commit" # - ./scripts/compare-deployed-commit "" $CI_COMMIT_SHA ${TLS_KEY} ${TLS_CERT} ${TLS_CA} - echo "Getting Digest from AWS" @@ -1588,6 +1595,7 @@ deploy_app_dp3: if [ -f sha_check_status ] && grep -q "failed" sha_check_status; then echo "Deploy halted due to SHA check failure."; exit 0; + fi - echo "Comparing against deployed commit" # - ./scripts/compare-deployed-commit "" "$CI_COMMIT_SHA" "$TLS_KEY" "$TLS_CERT" "$TLS_CA" - echo "Creating .go-version file if not already present"