Commit d03bf763 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

adding needs

parent 9beecef1
fpm:
stage: build_docker_images
image: $BUILD_DOCKER_IMAGE
needs:
- composer
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# We need the vendor files in our final image. Make sure to not ignore the folder
......@@ -17,6 +19,8 @@ fpm:
nginx:
stage: build_docker_images
image: $BUILD_DOCKER_IMAGE
needs:
- npm
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
......@@ -31,12 +35,15 @@ nginx:
cleanup_composer_image:
stage: build_docker_images
image: curlimages/curl
needs:
- composer
script:
- 'curl -X DELETE --fail -H "JOB-TOKEN: $CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/registry/repositories/418/tags/$DOCKER_COMPOSER_IMAGE_TAG"'
.cleanup_revision_images:
stage: build_docker_images
image: $DEPLOY_KUBERNETES_IMAGE
needs: []
variables:
KEEP_N: 9 # Trim to the latest 9 revisions as the 10th will be deleted in the next stage
script:
......
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