Commit 0f8dbf9b authored by Okhin's avatar Okhin

improving the CI

parent e5135eb9
Pipeline #1109 failed
before_script: job composer install:
- '[[ -d /srv/piphone/ ]] || mkdir -p /srv/piphone/' environment:
- 'which git || (apt-get update -yq && apt-get install git -yqq)' preprod
- 'which curl ||(apt-get update -yq && apt-get install curl -yqq)'
job install:
script: script:
- chmod a+x ci/install.sh - composer install
- ./ci/install.sh - composer update
stage: deploy artifacts:
tags: paths:
- preprod - vendor/
expire_in: 1 day
stage: build
tags: [preprod]
only: only:
- master - master
job deploy preprod:
variables:
BASE_PATH: /srv/piphone/frontend/
environment:
preprod
script:
- rsync -ruvC ./ ${BASE_PATH}
stage:
deploy
tags: [preprod]
only:
- master
job deploy production:
variables:
BASE_PATH: /srv/piphone/frontend
environment:
production
script:
- rscyn -ruvC ./ ${BASE_PATH}
stage:
deploy
only:
- master
when: manual
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment