@@ -122,11 +122,11 @@ jobs:
122122 uses : actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
123123 with :
124124 path : .data
125- key : v26.1 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback') }}-${{ hashFiles('db_cache_timestamp') }}
125+ key : v26.2 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback') }}-${{ hashFiles('db_cache_timestamp') }}
126126 # Fallback to caching by default branch name only. Allows to use
127127 # cache from the branch build on the previous day.
128128 restore-keys : |
129- v26.1 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback') }}-
129+ v26.2 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback') }}-
130130
131131 - name : Download DB
132132 run : |
@@ -139,6 +139,11 @@ jobs:
139139 VORTEX_ACQUIA_SECRET : ${{ secrets.VORTEX_ACQUIA_SECRET }}
140140 # ;> DB_DOWNLOAD_SOURCE_ACQUIA
141141
142+ # ;< MIGRATION
143+ - name : Download migration DB
144+ run : VORTEX_VAR_PREFIX=VORTEX_DOWNLOAD_DB2 ./scripts/vortex/download-db.sh
145+ # ;> MIGRATION
146+
142147 - name : Export DB
143148 run : |
144149 if [ ! -f /tmp/download-db-success ]; then echo "==> Database download semaphore file is missing. DB export will not proceed."; exit 0; fi
@@ -158,7 +163,7 @@ jobs:
158163 if : env.db_hash != hashFiles('.data')
159164 with :
160165 path : .data
161- key : v26.1 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback_yes') }}-${{ hashFiles('db_cache_timestamp') }}
166+ key : v26.2 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback_yes') }}-${{ hashFiles('db_cache_timestamp') }}
162167 # ;> !PROVISION_TYPE_PROFILE
163168
164169 build :
@@ -223,7 +228,7 @@ jobs:
223228 date "${VORTEX_CI_DB_CACHE_TIMESTAMP}" | tee db_cache_timestamp
224229
225230 - name : Show cache key for database caching
226- run : echo 'v26.1 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback_yes') }}-${{ hashFiles('db_cache_timestamp') }}'
231+ run : echo 'v26.2 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback_yes') }}-${{ hashFiles('db_cache_timestamp') }}'
227232
228233 # Restore DB cache based on the cache strategy set by the cache keys below.
229234 # Change 'v1' to 'v2', 'v3' etc., commit and push to force cache reset.
@@ -235,9 +240,9 @@ jobs:
235240 path : .data
236241 fail-on-cache-miss : true
237242 # Use cached database from previous builds of this branch.
238- key : v26.1 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback_yes') }}-${{ hashFiles('db_cache_timestamp') }}
243+ key : v26.2 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback_yes') }}-${{ hashFiles('db_cache_timestamp') }}
239244 restore-keys : |
240- v26.1 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback_yes') }}-
245+ v26.2 .0-db11-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback_yes') }}-
241246 # ;> !PROVISION_TYPE_PROFILE
242247
243248 - name : Login to container registry
@@ -340,6 +345,11 @@ jobs:
340345 if [ -f .data/db.sql ]; then
341346 docker compose exec cli mkdir -p .data
342347 docker compose cp -L .data/db.sql cli:/app/.data/db.sql
348+ #;< MIGRATION
349+ if [ -f ".data/${VORTEX_DOWNLOAD_DB2_FILE:-db2.sql}" ]; then
350+ docker compose cp -L ".data/${VORTEX_DOWNLOAD_DB2_FILE:-db2.sql}" cli:"/app/.data/${VORTEX_DOWNLOAD_DB2_FILE:-db2.sql}"
351+ fi
352+ #;> MIGRATION
343353 fi
344354 docker compose exec $(env | cut -f1 -d= | sed 's/^/-e /') -T cli ./scripts/vortex/provision.sh
345355 timeout-minutes : 30
0 commit comments