Vérification de la présence du fichier Dockerfile

This commit is contained in:
Tipragot 2023-05-27 14:19:20 +02:00
parent 8af60d2046
commit 5af4f69e7d

View file

@ -45,7 +45,7 @@ development-image:
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
rules: rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
- exists: exists:
- Dockerfile - Dockerfile
production-image: production-image:
@ -59,5 +59,5 @@ production-image:
- docker push $CI_REGISTRY_IMAGE:latest - docker push $CI_REGISTRY_IMAGE:latest
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- exists: exists:
- Dockerfile - Dockerfile