Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: php:7.1.29
- pipelines:
- branches:
- build:
- - step:
- name: Build and test in pipelines environment
- caches:
- - composer
- script:
- - apt-get update && apt-get install -qy git unzip
- - docker-php-ext-install pdo_mysql
- - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- - sh ./_ci/pipelines-build.sh
- services:
- - mysql
- - step:
- name: Deploy to test environment
- deployment: test
- script:
- - pipe: atlassian/rsync-deploy:0.3.1
- variables:
- USER: $SSH_USER
- SERVER: $SSH_HOST
- REMOTE_PATH: $DEPLOY_REMOTE_PATH
- LOCAL_PATH: '.'
- DEBUG: 'false'
- EXTRA_ARGS: '--exclude-from ./_ci/test-deploy-rsync-deploy-exclude-list.txt --delete --perms'
- - apt-get update && apt-get install -y openssh-client
- - cat ./_ci/test-deploy.sh | ssh -T $SSH_USER@$SSH_HOST
- definitions:
- services:
- mysql:
- image: mysql:5.7
- variables:
- MYSQL_DATABASE: 'pipelines'
- MYSQL_ROOT_PASSWORD: 'let_me_in'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement