Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vortex/docs/content/development/variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ The list below is automatically generated with [Shellvar](https://github.com/ale
| <a id="vortex_export_db_container_registry"></a>`VORTEX_EXPORT_DB_CONTAINER_REGISTRY` | Container registry name. | `docker.io` | `.vortex/tooling/src/vortex-export-db-image` |
| <a id="vortex_export_db_container_registry_push_proceed"></a>`VORTEX_EXPORT_DB_CONTAINER_REGISTRY_PUSH_PROCEED` | Proceed with container image push after it was exported. | `UNDEFINED` | `CI config` |
| <a id="vortex_export_db_file_dir"></a>`VORTEX_EXPORT_DB_FILE_DIR` | Directory with database dump file. | `./.data` | `.vortex/tooling/src/vortex-export-db-file` |
| <a id="vortex_export_db_file_structure_tables"></a>`VORTEX_EXPORT_DB_FILE_STRUCTURE_TABLES` | Tables to export with their structure but without their data. Accepts a comma-separated list where each entry may use the `*` wildcard. Drupal rebuilds cache tables on demand, so their contents only inflate the dump. Set to an empty value to export the data of every table. | `cache*` | `.vortex/tooling/src/vortex-export-db-file` |
| <a id="vortex_export_db_image"></a>`VORTEX_EXPORT_DB_IMAGE` | Name of the database container image to use. Uncomment to use an image with a DB data loaded into it. @see https://github.com/drevops/mariadb-drupal-data to seed your DB image. | `${VORTEX_DB_IMAGE}` | `.vortex/tooling/src/vortex-export-db`, `.vortex/tooling/src/vortex-export-db-image`, `.vortex/tooling/src/vortex-push-db-image` |
| <a id="vortex_export_db_image_archive_file"></a>`VORTEX_EXPORT_DB_IMAGE_ARCHIVE_FILE` | Container image archive file name. | `UNDEFINED` | `.vortex/tooling/src/vortex-export-db-image` |
| <a id="vortex_export_db_image_dir"></a>`VORTEX_EXPORT_DB_IMAGE_DIR` | Directory with database image archive file. | `${VORTEX_DB_DIR}` | `.vortex/tooling/src/vortex-export-db-image` |
Expand Down
6 changes: 6 additions & 0 deletions .vortex/installer/src/Command/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
label: 'Downloading Vortex',
action: function (): string {
$release_prefix = Version::releasePrefix($this->getApplication()->getVersion());
// The staging directory can be pointed at a reused location, and the
// download unpacks into it rather than replacing it, so anything a
// previous run left behind would be treated as shipped by this one.
$this->fileManager->resetStaging();
$version = $this->getRepositoryDownloader()->download($this->artifact, $this->config->get(Config::TMP), $release_prefix);
$this->config->set(Config::VERSION, $version);
$this->fileManager->snapshotTemplate();
$this->fileManager->snapshotPreviousTemplate($this->getRepositoryDownloader(), $this->artifact);
return $version;
},
hint: fn(): string => sprintf('Downloading from "%s" repository at ref "%s"', $this->artifact->getRepo(), $this->artifact->getRef()),
Expand Down
Loading