Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitLab CI/CD
Drupal
Commits
2327e91b
Commit
2327e91b
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Plain Diff
Merge branch '51/data-handling-fix' into 'main'
#51
missed fixing it for the CopyDataToStage task See merge request
!2
parents
1256ebc2
5dff0b54
No related branches found
No related tags found
1 merge request
!2
#51 missed fixing it for the CopyDataToStage task
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
data-handling-ng.yml
+2
-2
2 additions, 2 deletions
data-handling-ng.yml
with
2 additions
and
2 deletions
data-handling-ng.yml
+
2
−
2
View file @
2327e91b
...
...
@@ -137,11 +137,11 @@ CopyDataToStage:
-
if [[ ! -d /data/${targetbranch}/app ]]; then echo "Target branch does not exist!"; exit 2; fi
-
if [[ "${targetbranch}" == "main" ]]; then echo "Main branch is not an allowed target!"; exit 3; fi
-
cd /data/${sourcebranch}/app
-
SANITIZED_SOURCE_BRANCH_NAME=$(echo ${sourcebranch} | sed -r 's/[/_]+/-/g')
-
SANITIZED_SOURCE_BRANCH_NAME=$(echo ${sourcebranch} |
tr [:upper:] [:lower:] |
sed -r 's/[/_]+/-/g')
-
docker compose --project-name ${PROJECT_NAME}_${SANITIZED_SOURCE_BRANCH_NAME} exec php drush sql:dump --result-file=/var/backups/mysql/drupal.sql
-
rsync -rlDzogtp /data/${sourcebranch}/files/ /data/${targetbranch}/files/
-
cd /data/${targetbranch}/app
-
SANITIZED_TARGET_BRANCH_NAME=$(echo ${targetbranch} | sed -r 's/[/_]+/-/g')
-
SANITIZED_TARGET_BRANCH_NAME=$(echo ${targetbranch} |
tr [:upper:] [:lower:] |
sed -r 's/[/_]+/-/g')
-
docker compose --project-name ${PROJECT_NAME}_${SANITIZED_TARGET_BRANCH_NAME} cp /data/${targetbranch}/files/db/drupal.sql php:/tmp
-
docker compose --project-name ${PROJECT_NAME}_${SANITIZED_TARGET_BRANCH_NAME} exec php drush -y sql:drop
-
docker compose --project-name ${PROJECT_NAME}_${SANITIZED_TARGET_BRANCH_NAME} exec php drush -y sql:query --file=/tmp/drupal.sql
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment