|
|
@ -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}"
|
|
|
|