Skip to content
Snippets Groups Projects
Commit 9faf20a5 authored by Holi's avatar Holi
Browse files

Merge branch 'main' into production

parents 8d760235 f2d3fc37
No related branches found
Tags release/1.49.0
No related merge requests found
.envrc.local
coverage
terraform*.log
/.gitlab-ci-local
......@@ -39,7 +39,7 @@ variables:
# TODO should/could we roll back the service to the last working revision on test failure?
cache_lint:
image: 'europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/denoland/deno:2.1.10'
image: 'europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/denoland/deno:2.2.2'
stage: 'test'
script:
- deno cache --allow-import --lock=deno.lock app/deps.ts app/dev_deps.ts
......
FROM europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/denoland/deno:2.1.10
FROM europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/denoland/deno:2.2.2
# The port that your application listens to.
EXPOSE 8089
......
terraform {
# allow the lowest common version across all projects, so that the current CI docker image version suits all projects
required_version = ">= 1.9"
required_providers {
google = {
source = "hashicorp/google"
version = "6.22.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "6.22.0"
}
}
backend "gcs" {
bucket = "holi-shared-terraform-state"
prefix = "translation-api-common"
......
terraform {
# allow the lowest common version across all projects, so that the current CI docker image version suits all projects
required_version = ">= 1.9"
required_providers {
google = {
source = "hashicorp/google"
version = "6.22.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "6.22.0"
}
}
backend "gcs" {
bucket = "holi-shared-terraform-state"
prefix = "translation-api-environments"
......
......@@ -7,7 +7,7 @@ url="$1"
# google has a cdn answering on requests. This cdn takes a while to be fully updated.
# Therefore, we don't return on first success, but on a number of consecutive successes.
number_of_consecutive_successful_tries_needed=10
number_of_consecutive_successful_tries_needed=25
number_of_consecutive_successful_tries_achieved=0
[ -z "$url" ] && echo "missing url as first param" && exit 1
......@@ -17,10 +17,21 @@ echo -n "Checking if SSL certificate for $url is installed: "
# storage for the return value of the curl command
retval=0
# early break on success (no need to wait on existing deployments)
set +e
curl -sSLIm 10 "$url" > /dev/null 2>& 1
retval=$?
set -e
if [ $retval -eq 0 ]; then
echo "success on first try, not checking further"
exit 0
fi
# shellcheck disable=SC2034
for i in {1..2500}; do
set +e
out=$(curl -sSLI "$url" 2>&1)
out=$(curl -sSLIm 10 "$url" 2>& 1)
retval=$?
set -e
# shellcheck disable=SC2181
......@@ -31,6 +42,7 @@ for i in {1..2500}; do
echo "test successful after $i total tries"
exit 0
fi
sleep 1
else
echo -n "."
number_of_consecutive_successful_tries_achieved=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment