ci: cypress on doc name fix (#26819)
This commit is contained in:
parent
7c93d81c50
commit
a375ccf7b4
|
|
@ -172,9 +172,9 @@ jobs:
|
|||
|
||||
run: |
|
||||
timestamp=$(date +%s)
|
||||
hash=$(echo -n "$timestamp" | sha1sum | awk '{print $1}')
|
||||
hash=$(hostname)
|
||||
current_date=$(date -d "@$timestamp" +"%d-%m")
|
||||
DB_NAME="ci${hash:1:3}-${current_date}"
|
||||
DB_NAME="ci-${current_date}-${hash}"
|
||||
MONGO_CREDS=$(echo $APPSMITH_MONGODB_URI | sed 's/@.*//')
|
||||
URI="${MONGO_CREDS}@localhost:27010/${DB_NAME}?retryWrites=false&replicaSet=rs0&directConnection=true"
|
||||
mongorestore --uri="${URI}" --archive=data.gz --gzip --drop --nsInclude=*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user