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: ...@@ -7,14 +7,11 @@ stages:
- build - build
- test - test
- release - release
- deploy
- cleanup
before_script: before_script:
# TODO: only required on gitlab.com # TODO: only required on gitlab.com
#- apk add --no-cache py-pip git - (apk add --no-cache py-pip git && pip install docker-compose) || true
#- pip install docker-compose
- export ISOLATION=buildpipeline${CI_BUILD_PIPELINE} - export ISOLATION=buildpipeline${CI_BUILD_PIPELINE}
- export COMPOSE_PROJECT_NAME=${ISOLATION} - export COMPOSE_PROJECT_NAME=${ISOLATION}
- export APP_VERSION=$(git describe --always --dirty) - export APP_VERSION=$(git describe --always --dirty)
...@@ -22,6 +19,9 @@ before_script: ...@@ -22,6 +19,9 @@ before_script:
- export STACK_PHP_IMAGE=${PHP_IMAGE_NAME}:${APP_VERSION} - export STACK_PHP_IMAGE=${PHP_IMAGE_NAME}:${APP_VERSION}
- export REGISTRY_PHP_IMAGE=${PHP_IMAGE_NAME}:${CI_BUILD_REF_NAME} - export REGISTRY_PHP_IMAGE=${PHP_IMAGE_NAME}:${CI_BUILD_REF_NAME}
after_script:
- docker-compose down -v
build: build:
stage: build stage: build
script: script:
...@@ -49,11 +49,3 @@ release:latest: ...@@ -49,11 +49,3 @@ release:latest:
only: only:
- latest - latest
- tags - 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