Moved deploy.sh to bin folder

main
Igor Scheller 6 years ago
parent 235266ec53
commit 2f41b9e441

@ -76,7 +76,7 @@ test:7.1:
# Install project and dependencies # Install project and dependencies
- &deployment_dependencies |- - &deployment_dependencies |-
chmod +x ./deploy.sh chmod +x ./bin/deploy.sh
apt update && apt install -yqq rsync openssh-client apt update && apt install -yqq rsync openssh-client
/usr/local/bin/composer --no-ansi install --no-dev /usr/local/bin/composer --no-ansi install --no-dev
/usr/local/bin/composer --no-ansi dump-autoload --optimize /usr/local/bin/composer --no-ansi dump-autoload --optimize
@ -95,7 +95,7 @@ deploy_staging:
- *deployment_ssh - *deployment_ssh
- *deployment_dependencies - *deployment_dependencies
# Deploy to server # Deploy to server
- ./deploy.sh -r "${STAGING_REMOTE}" -p "${STAGING_REMOTE_PATH}" -i "${CI_JOB_ID}-${CI_COMMIT_SHA}" - ./bin/deploy.sh -r "${STAGING_REMOTE}" -p "${STAGING_REMOTE_PATH}" -i "${CI_JOB_ID}-${CI_COMMIT_SHA}"
deploy_production: deploy_production:
<<: *deploy_definition <<: *deploy_definition
@ -112,4 +112,4 @@ deploy_production:
- *deployment_ssh - *deployment_ssh
- *deployment_dependencies - *deployment_dependencies
# Deploy to server # Deploy to server
- ./deploy.sh -r "${PRODUCTION_REMOTE}" -p "${PRODUCTION_REMOTE_PATH}" -i "${CI_JOB_ID}-${CI_COMMIT_SHA}" - ./bin/deploy.sh -r "${PRODUCTION_REMOTE}" -p "${PRODUCTION_REMOTE_PATH}" -i "${CI_JOB_ID}-${CI_COMMIT_SHA}"

@ -73,10 +73,11 @@ PRODUCTION_REMOTE # Same as STAGING_REMOTE but for the production environm
PRODUCTION_REMOTE_PATH # Same as STAGING_REMOTE_PATH but for the production environment PRODUCTION_REMOTE_PATH # Same as STAGING_REMOTE_PATH but for the production environment
``` ```
#### deploy.sh #### Scripts
The `deploy.sh` script can be used to deploy the engelsystem. It uses rsync to deploy the application to a server over ssh. ##### bin/deploy.sh
The `bin/deploy.sh` script can be used to deploy the engelsystem. It uses rsync to deploy the application to a server over ssh.
For usage see `./deploy.sh -h` For usage see `./bin/deploy.sh -h`
### Codestyle ### Codestyle
Please ensure that your pull requests follow [PSR-2](http://www.php-fig.org/psr/psr-2/) and [PSR-4](http://www.php-fig.org/psr/psr-4/). Please ensure that your pull requests follow [PSR-2](http://www.php-fig.org/psr/psr-2/) and [PSR-4](http://www.php-fig.org/psr/psr-4/).

Loading…
Cancel
Save