File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,9 @@ export AZCOPY_AUTO_LOGIN_TYPE=AZCLI
33export AZ_STORAGE_ACCOUNT=" ${ENV} kernaicluster"
44export AZ_STORAGE_FILE_SHARE=" ${ENV} -cluster-cognition"
55
6+ azcopy copy --recursive " https://$AZ_STORAGE_ACCOUNT .file.core.windows.net/$AZ_STORAGE_FILE_SHARE /minio/" " ."
67azcopy rm --recursive " https://$AZ_STORAGE_ACCOUNT .file.core.windows.net/$AZ_STORAGE_FILE_SHARE /caddy/*"
8+ azcopy rm --recursive " https://$AZ_STORAGE_ACCOUNT .file.core.windows.net/$AZ_STORAGE_FILE_SHARE /kratos/*"
9+ azcopy rm --recursive " https://$AZ_STORAGE_ACCOUNT .file.core.windows.net/$AZ_STORAGE_FILE_SHARE /oathkeeper/*"
10+ azcopy rm --recursive " https://$AZ_STORAGE_ACCOUNT .file.core.windows.net/$AZ_STORAGE_FILE_SHARE /cognition-gateway/*"
711
Original file line number Diff line number Diff line change @@ -138,12 +138,17 @@ until kubectl exec -i deployment/test-postgres -- sh -c pg_isready; do
138138 echo " Waiting for postgres to be ready..."
139139 sleep 3
140140done
141+ kubectl exec -i deployment/test-postgres -- sh -c " psql -U postgres -c 'DROP DATABASE IF EXISTS refinery;"
141142kubectl exec -i deployment/test-postgres -- sh -c " psql -U postgres -c '$( cat infrastructure/test/deployment/assets/init.sql) '"
142143echo " ::endgroup::"
143144
144145
145146if [ " $ENABLE_ALEMBIC_MIGRATIONS " = " true" ]; then
146147 upgrade_alembic_migrations
148+ else
149+ kubectl apply --kustomize apps/${KUBERNETES_DEPLOYMENT_NAME} /test
150+ __safe_migration_rollout test-${KUBERNETES_DEPLOYMENT_NAME}
151+ echo " Applied test-${KUBERNETES_DEPLOYMENT_NAME} deployment"
147152fi
148153
149154echo " ::group::Set test image: ${AZURE_CONTAINER_REGISTRY} /${KUBERNETES_DEPLOYMENT_NAME} :${TEST_IMAGE_TAG} "
You can’t perform that action at this time.
0 commit comments