Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
docker-php-yii2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dmstr
docker-php-yii2
Commits
0e5d8bd5
Commit
0e5d8bd5
authored
Aug 22, 2017
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated nginx tests
parent
30e5507c
Pipeline
#24775
passed with stages
in 3 minutes and 47 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
.gitlab-ci.yml
.gitlab-ci.yml
+6
-6
debug.sh
test/debug.sh
+3
-2
No files found.
.gitlab-ci.yml
View file @
0e5d8bd5
...
...
@@ -72,7 +72,6 @@ release:php:latest:
stage
:
php-release
only
:
-
latest
-
tags
script
:
-
docker login --username ${REGISTRY_USER} --password ${REGISTRY_PASS} ${REGISTRY_HOST}
-
docker tag ${STACK_PHP_IMAGE} ${REGISTRY_PHP_IMAGE_LATEST}
...
...
@@ -105,19 +104,20 @@ build:php-alpine-nginx:
-
cd nginx
-
docker-compose build --pull php-alpine-nginx
test:php-nginx
:
stage
:
nginx-test
script
:
-
docker-compose run --rm php-nginx nginx -v
test:php-alpine-nginx
:
stage
:
nginx-test
script
:
-
sh test/prod.sh
-
sh test/dev.sh
-
sh test/debug.sh
-
docker-compose run --rm php-alpine-nginx nginx -v
release:nginx:latest
:
stage
:
nginx-release
only
:
-
latest
-
tags
script
:
-
docker login --username ${REGISTRY_USER} --password ${REGISTRY_PASS} ${REGISTRY_HOST}
-
docker tag ${STACK_PHP_IMAGE}-nginx ${REGISTRY_PHP_IMAGE_LATEST}-nginx
...
...
@@ -125,7 +125,7 @@ release:nginx:latest:
-
docker tag ${STACK_PHP_IMAGE}-alpine-nginx ${REGISTRY_PHP_IMAGE_LATEST}-alpine-nginx
-
docker push ${REGISTRY_PHP_IMAGE_LATEST}-alpine-nginx
release:nginx:tag
:
release:nginx:tag
s
:
stage
:
nginx-release
only
:
-
tags
...
...
test/debug.sh
View file @
0e5d8bd5
...
...
@@ -3,15 +3,16 @@
PHP_SERVICE
=
${
PHP_SERVICE
-php
}
echo
"Running one-off command with xdebug"
docker-compose run
-e
PHP_ENABLE_XDEBUG
=
1
${
PHP_SERVICE
}
php
-i
|
grep
xdebug
PHP_ENABLE_XDEBUG
=
1 docker-compose run
${
PHP_SERVICE
}
php
-i
|
grep
xdebug
echo
""
echo
"Starting stack with xdebug"
PHP_ENABLE_XDEBUG
=
1 docker-compose up
-d
${
PHP_SERVICE
}
sleep
5
docker-compose
exec
${
PHP_SERVICE
}
php
-i
--
|
grep
xdebug
docker-compose down
-v
echo
""
echo
"Starting stack without xdebug"
PHP_ENABLE_XDEBUG
=
0 docker-compose up
-d
${
PHP_SERVICE
}
sleep
5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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