add .git to .dockerignore when building master images

This commit is contained in:
Andrew Dolgov 2023-11-01 13:08:50 +03:00
parent 5cfde4cada
commit ee18936bfe
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 6 additions and 2 deletions

View File

@ -43,11 +43,15 @@ ttrss-web-nginx:
extends: .build-master-commit-only extends: .build-master-commit-only
variables: variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile
before_script:
- echo .git >> ${CI_PROJECT_DIR}/.dockerignore
ttrss-fpm-pgsql-static: ttrss-fpm-pgsql-static:
extends: .build-master-commit-only extends: .build-master-commit-only
variables: variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/app/Dockerfile DOCKERFILE: ${CI_PROJECT_DIR}/.docker/app/Dockerfile
before_script:
- echo .git >> ${CI_PROJECT_DIR}/.dockerignore
phpdoc: phpdoc:
image: ${PHP_IMAGE} image: ${PHP_IMAGE}