Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
TMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
CC-IN2P3 Applications team
TMS
Commits
caf5b79c
Commit
caf5b79c
authored
4 years ago
by
Benjamin Guillon
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
dd9309e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!5
Module Tapes : Try fixing bug 'Mixed Content The page at was loaded over...
,
!3
Openshift deployment
,
!2
Openshift deployment
Pipeline
#64603
failed
4 years ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-14
18 additions, 14 deletions
.gitlab-ci.yml
with
18 additions
and
14 deletions
.gitlab-ci.yml
+
18
−
14
View file @
caf5b79c
...
@@ -2,35 +2,39 @@ stages:
...
@@ -2,35 +2,39 @@ stages:
-
build
-
build
-
test
-
test
nginx-image-build
:
default
:
stage
:
build
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
image
:
docker:latest
services
:
services
:
-
docker:dind
-
docker:dind
script
:
image
:
docker:latest
-
docker build --pull -t "$CI_REGISTRY_IMAGE/nginx:$CI_COMMIT_REF_SLUG" -f ./docker/nginx/Dockerfile .
-
docker push "$CI_REGISTRY_IMAGE/nginx:$CI_COMMIT_REF_SLUG"
php-image-build
:
php-image-build
:
stage
:
build
stage
:
build
before_script
:
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
image
:
docker:latest
services
:
-
docker:dind
script
:
script
:
-
docker build --pull -t "$CI_REGISTRY_IMAGE/php-fpm:$CI_COMMIT_REF_SLUG" -f ./docker/php-fpm/Dockerfile .
-
docker build --pull -t "$CI_REGISTRY_IMAGE/php-fpm:$CI_COMMIT_REF_SLUG" -f ./docker/php-fpm/Dockerfile .
-
docker push "$CI_REGISTRY_IMAGE/php-fpm:$CI_COMMIT_REF_SLUG"
-
docker push "$CI_REGISTRY_IMAGE/php-fpm:$CI_COMMIT_REF_SLUG"
nginx-image-build
:
stage
:
build
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
needs
:
-
php-image-build
script
:
-
docker build --pull -t "$CI_REGISTRY_IMAGE/nginx:$CI_COMMIT_REF_SLUG" -f ./docker/nginx/Dockerfile .
-
docker push "$CI_REGISTRY_IMAGE/nginx:$CI_COMMIT_REF_SLUG"
test
:
test
:
stage
:
test
stage
:
test
image
:
$CI_REGISTRY_IMAGE/php-fpm:$CI_COMMIT_REF_SLUG
image
:
$CI_REGISTRY_IMAGE/php-fpm:$CI_COMMIT_REF_SLUG
variables
:
# Don't git clone, the software is already in the image run
GIT_STRATEGY
:
none
needs
:
needs
:
-
php-image-build
-
php-image-build
script
:
script
:
-
ls -la .
-
pwd &&
ls -la .
-
cd $CI_BUILD_DIR &&
sh ./vendor/bin/simple-phpunit --configuration phpunit.xml.dist
-
sh .
tms
/vendor/bin/simple-phpunit --configuration phpunit.xml.dist
## TODO: Define unit tests
## TODO: Define unit tests
## TODO: Add unit tests report as job artifact
## TODO: Add unit tests report as job artifact
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