Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
devops_mohi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MENACER Mohamed
devops_mohi
Commits
fd8a1535
Commit
fd8a1535
authored
4 months ago
by
MENACER Mohamed
Browse files
Options
Downloads
Patches
Plain Diff
test7
parent
898754d2
No related branches found
No related tags found
1 merge request
!4
Br1
Pipeline
#47529
failed
4 months ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-14
6 additions, 14 deletions
.gitlab-ci.yml
with
6 additions
and
14 deletions
.gitlab-ci.yml
+
6
−
14
View file @
fd8a1535
image
:
docker:
latest
image
:
docker:
26.1
# Assure-toi d'utiliser une version stable de Docker
services
:
services
:
-
name
:
docker:dind
-
docker:26.1-dind
# Démarre Docker-in-Docker
command
:
[
"
--tls=false"
]
privileged
:
true
variables
:
variables
:
DOCKER_HOST
:
tcp://
l
oc
alhost
:2375
DOCKER_HOST
:
tcp://
d
oc
ker
:2375
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_TLS_CERTDIR
:
"
"
PHP_VERSION
:
"
8.2"
PHP_VERSION
:
"
8.2"
COMPOSER_CACHE_DIR
:
"
$CI_PROJECT_DIR/var/cache/composer"
COMPOSER_CACHE_DIR
:
"
$CI_PROJECT_DIR/var/cache/composer"
...
@@ -15,21 +13,15 @@ stages:
...
@@ -15,21 +13,15 @@ stages:
-
build
-
build
-
test
-
test
cache
:
key
:
composer
paths
:
-
vendor/
-
var/cache/composer/
before_script
:
before_script
:
-
apk add --no-cache bash git unzip curl docker-compose
-
apk add --no-cache bash git unzip curl docker-compose
-
docker
--vers
ion
-
docker
info
# Vérifie si Docker fonct
ion
ne
-
docker-compose
--
version
-
docker-compose version
# Vérifie si Docker Compose est bien installé
build
:
build
:
stage
:
build
stage
:
build
script
:
script
:
-
docker-compose up -d
-
docker-compose up -d
# Démarre tes services
-
docker-compose exec php composer install --no-interaction --prefer-dist
-
docker-compose exec php composer install --no-interaction --prefer-dist
artifacts
:
artifacts
:
paths
:
paths
:
...
...
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