Skip to content

Commit

Permalink
fix manual deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
usu committed May 5, 2024
1 parent 8e4ebc8 commit 0aa3976
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .helm/deploy-to-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ for i in 1; do
values="$values --set postgresql.url=$POSTGRES_URL/ecamp3$instance_name-"$i"?sslmode=require"
values="$values --set postgresql.adminUrl=$POSTGRES_ADMIN_URL/ecamp3$instance_name-"$i"?sslmode=require"
values="$values --set postgresql.dropDBOnUninstall=true"
values="$values --set php.dataMigrationsDir=$migrations_dir"
values="$values --set php.appSecret=$app_secret"
values="$values --set api.dataMigrationsDir=$migrations_dir"
values="$values --set api.appSecret=$app_secret"
if [ -n "$API_SENTRY_DSN" ]; then
values="$values --set php.sentryDsn=$API_SENTRY_DSN"
values="$values --set api.sentryDsn=$API_SENTRY_DSN"
fi
if [ -n "$FRONTEND_SENTRY_DSN" ]; then
values="$values --set frontend.sentryDsn=$FRONTEND_SENTRY_DSN"
fi
if [ -n "$PRINT_SENTRY_DSN" ]; then
values="$values --set print.sentryDsn=$PRINT_SENTRY_DSN"
fi
values="$values --set php.jwt.passphrase=$app_jwt_passphrase"
values="$values --set-file php.jwt.publicKey=$SCRIPT_DIR/public.pem"
values="$values --set-file php.jwt.privateKey=$SCRIPT_DIR/private.pem"
values="$values --set api.jwt.passphrase=$app_jwt_passphrase"
values="$values --set-file api.jwt.publicKey=$SCRIPT_DIR/public.pem"
values="$values --set-file api.jwt.privateKey=$SCRIPT_DIR/private.pem"
values="$values --set deploymentTime=$(date -u +%s)"
values="$values --set deployedVersion=\"$(git rev-parse --short HEAD)\""
values="$values --set featureToggle.developer=true"
Expand Down
5 changes: 3 additions & 2 deletions .helm/ecamp3/templates/api_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ spec:
startupProbe:
tcpSocket:
port: 3001
failureThreshold: 40
periodSeconds: 3
failureThreshold: 10
periodSeconds: 15
timeoutSeconds: 10

volumes:
- name: php-socket
Expand Down

0 comments on commit 0aa3976

Please sign in to comment.