Skip to content

Commit

Permalink
Temporarily bypass SHA check for clean demo deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
JacintaCallahan committed Feb 24, 2025
1 parent 98c816d commit 2864b79
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 2864b79

Please sign in to comment.