Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
docker-yii2-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dmstr
docker-yii2-app
Commits
3be6f33c
Commit
3be6f33c
authored
Jan 23, 2018
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added docker-compose installation (only GitLab.com)
parent
61486f8e
Pipeline
#27479
passed with stages
in 1 minute and 14 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
.gitlab-ci.yml
.gitlab-ci.yml
+5
-13
No files found.
.gitlab-ci.yml
View file @
3be6f33c
...
...
@@ -7,14 +7,11 @@ stages:
-
build
-
test
-
release
-
deploy
-
cleanup
before_script
:
# TODO: only required on gitlab.com
#- apk add --no-cache py-pip git
#- pip install docker-compose
-
(apk add --no-cache py-pip git && pip install docker-compose) ||
true
-
export ISOLATION=buildpipeline${CI_BUILD_PIPELINE}
-
export COMPOSE_PROJECT_NAME=${ISOLATION}
-
export APP_VERSION=$(git describe --always --dirty)
...
...
@@ -22,6 +19,9 @@ before_script:
-
export STACK_PHP_IMAGE=${PHP_IMAGE_NAME}:${APP_VERSION}
-
export REGISTRY_PHP_IMAGE=${PHP_IMAGE_NAME}:${CI_BUILD_REF_NAME}
after_script
:
-
docker-compose down -v
build
:
stage
:
build
script
:
...
...
@@ -49,11 +49,3 @@ release:latest:
only
:
-
latest
-
tags
cleanup
:
stage
:
cleanup
when
:
always
script
:
-
docker-compose kill
-
docker-compose rm -fv --all
-
docker-compose down --remove-orphans --rmi local
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