Skip to content
Snippets Groups Projects
Commit 5a53fa27 authored by Jakob Fritz's avatar Jakob Fritz
Browse files

Do not sync hidden files, but sync htaccess

parent 7b01010e
No related branches found
No related tags found
No related merge requests found
Pipeline #164327 passed
...@@ -140,7 +140,8 @@ deploy_website_main: ...@@ -140,7 +140,8 @@ deploy_website_main:
script: script:
- echo "'${APPS_HOST}'" - echo "'${APPS_HOST}'"
- echo "'${APPS_DIR}'" - echo "'${APPS_DIR}'"
- rsync -avh --delete-before dist/ ${APPS_HOST}:${APPS_DIR}/ - rsync -avh --delete-before dist/* ${APPS_HOST}:${APPS_DIR}/
- rsync -avh dist/.htaccess ${APPS_HOST}:${APPS_DIR}/
rules: rules:
- if: >- - if: >-
$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_BRANCH == "main" &&
...@@ -169,7 +170,8 @@ deploy_website_other: ...@@ -169,7 +170,8 @@ deploy_website_other:
- echo "'${APPS_DIR}'" - echo "'${APPS_DIR}'"
- echo "'${CI_COMMIT_REF_SLUG}'" - echo "'${CI_COMMIT_REF_SLUG}'"
- echo "'${APPS_DIR_BRANCH}'" - echo "'${APPS_DIR_BRANCH}'"
- rsync -avh --delete-before dist/ ${APPS_HOST}:${APPS_DIR_BRANCH}/ - rsync -avh --delete-before dist/* ${APPS_HOST}:${APPS_DIR_BRANCH}/
- rsync -avh dist/.htaccess ${APPS_HOST}:${APPS_DIR_BRANCH}/
variables: variables:
APPS_DIR_BRANCH: ${APPS_DIR}/${CI_COMMIT_REF_SLUG} APPS_DIR_BRANCH: ${APPS_DIR}/${CI_COMMIT_REF_SLUG}
rules: rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment