# Put overrides to your pantheon.upstream.yml file here.
# For more information, see: https://pantheon.io/docs/pantheon-yml/
api_version: 1

# PHP Version:
# https://pantheon.io/docs/pantheon-yml#php-version
# Set site's PHP version to 7.4
php_version: 8.1

build_step: false

# Nested Docroot
# https://pantheon.io/docs/pantheon-yml#nested-docroot
web_docroot: true

database:
  version: 10.6

# SOLR version
search:
  version: 8

workflows:
  sync_code:
    after:
      - type: webphp
        description: Clear cache
        script: private/scripts/drush_rebuild_cache.php
      - type: webphp
        description: Apply database updates
        script: private/scripts/drush_update_db.php
      - type: webphp
        description: Import configuration
        script: private/scripts/drush_config_import.php
      - type: webphp
        description: Clear cache
        script: private/scripts/drush_rebuild_cache.php
      - type: webphp
        description: Import translations
        script: private/scripts/drush_import_translations.php
  deploy:
    after:
      - type: webphp
        description: Clear cache
        script: private/scripts/drush_rebuild_cache.php
      - type: webphp
        description: Apply database updates
        script: private/scripts/drush_update_db.php
      - type: webphp
        description: Import configuration
        script: private/scripts/drush_config_import.php
      - type: webphp
        description: Clear cache
        script: private/scripts/drush_rebuild_cache.php
      - type: webphp
        description: Import translations
        script: private/scripts/drush_import_translations.php
