Commit 0f8dbf9b authored by okhin's avatar okhin 🚴

improving the CI

parent e5135eb9
Pipeline #1109 failed
before_script:
- '[[ -d /srv/piphone/ ]] || mkdir -p /srv/piphone/'
- 'which git || (apt-get update -yq && apt-get install git -yqq)'
- 'which curl ||(apt-get update -yq && apt-get install curl -yqq)'
job install:
job composer install:
environment:
preprod
script:
- chmod a+x ci/install.sh
- ./ci/install.sh
stage: deploy
tags:
- preprod
- composer install
- composer update
artifacts:
paths:
- vendor/
expire_in: 1 day
stage: build
tags: [preprod]
only:
- 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