Commit 3be6f33c authored by Tobias Munk's avatar Tobias Munk

added docker-compose installation (only GitLab.com)

parent 61486f8e
Pipeline #27479 passed with stages
in 1 minute and 14 seconds
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment