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
065b04f9
Commit
065b04f9
authored
Aug 14, 2025
by
Abhishek
Browse files
Update .gitlab-ci.yml file
parent
f1a8e683
Pipeline
#11774
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
065b04f9
#
This GitLab CI/CD pipeline is designed to run the complete Moodle
This GitLab CI/CD pipeline is designed to run the complete Moodle
# automation script in a single, manually triggered job.
# automation script in a single, manually triggered job.
# Use the official Docker image to enable Docker-in-Docker (dind).
# Use the official Docker image to enable Docker-in-Docker (dind).
...
@@ -13,9 +13,15 @@ stages:
...
@@ -13,9 +13,15 @@ stages:
-
full_test
# A single stage for our end-to-end test.
-
full_test
# A single stage for our end-to-end test.
variables
:
variables
:
# --- FIX STARTS HERE ---
# 1. DOCKER_HOST tells docker-compose how to connect to the Docker-in-Docker service.
DOCKER_HOST
:
tcp://docker:2375
# 2. EUSER and EGID provide default values for the variables in your docker-compose.yml.
EUSER
:
"
1000"
EGID
:
"
1000"
# --- FIX ENDS HERE ---
# Define variables that will be available to the job.
# Define variables that will be available to the job.
# GitLab CI automatically creates a network where services can be reached
# by the hostname 'docker' or 'localhost'. We'll use 'docker'.
MOODLE_URL
:
"
http://docker:8080"
MOODLE_URL
:
"
http://docker:8080"
BACKEND_URL
:
"
http://docker:8081"
BACKEND_URL
:
"
http://docker:8081"
# This variable is required for the Docker-in-Docker service to work correctly.
# This variable is required for the Docker-in-Docker service to work correctly.
...
@@ -45,11 +51,11 @@ run_full_automation:
...
@@ -45,11 +51,11 @@ run_full_automation:
# 3. Make your main script executable.
# 3. Make your main script executable.
# Replace 'your_main_script.sh' with the actual filename.
# Replace 'your_main_script.sh' with the actual filename.
-
chmod +x
test-moodle
.sh
-
chmod +x
your_main_script
.sh
# 4. Run the entire script from top to bottom.
# 4. Run the entire script from top to bottom.
-
echo "Executing the main automation script..."
-
echo "Executing the main automation script..."
-
./
test-moodle
.sh
-
./
your_main_script
.sh
after_script
:
after_script
:
# It's good practice to clean up the environment after the test.
# It's good practice to clean up the environment after the test.
...
...
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