Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
cota-infra
Commits
89de1b2d
Commit
89de1b2d
authored
Sep 07, 2025
by
Abhishek
Browse files
Update .gitlab-ci.yml file
parent
e44b5849
Pipeline
#11820
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
89de1b2d
# This GitLab CI/CD pipeline is designed to run the complete Moodle
# automation script in a single, manually triggered job.
image
:
docker:20.10.16
stages
:
...
...
@@ -19,16 +16,20 @@ variables:
run_full_automation
:
stage
:
full_test
when
:
manual
before_script
:
-
apk add --no-cache curl docker-compose bash jq
-
echo "Docker version:"
-
docker --version
-
echo "Docker Compose version:"
-
docker-compose --version
-
echo "Checking Docker socket..."
-
ls -l /var/run/docker.sock || echo "Docker socket not found!"
-
echo "Verifying Docker daemon..."
-
docker info || { echo "Failed to connect to Docker daemon!"; exit 1; }
-
echo "Setting up named volume..."
-
docker volume create cota-infra_dta_tests_data
-
echo "Setting permissions on dta_tests_data volume..."
-
docker run --rm -v cota-infra_dta_tests_data:/data alpine chown 137:137 /data
script
:
-
echo "Creating .env file for Docker Compose..."
-
echo "MOODLE_WWWROOT=${MOODLE_WWWROOT}" > .env
...
...
@@ -38,6 +39,8 @@ run_full_automation:
-
echo "EGID=${EGID}" >> .env
-
echo "Starting Docker environment..."
-
docker-compose up -d
-
echo "Docker Compose services:"
-
docker-compose ps
-
echo "Waiting for Moodle first-time installation to complete..."
-
|
timeout=300
...
...
@@ -55,7 +58,6 @@ run_full_automation:
-
chmod +x test-moodle.sh
-
echo "Executing the main automation script..."
-
./test-moodle.sh
after_script
:
-
echo "Tearing down Docker environment..."
-
docker-compose down -v
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment