Advertisement
Guest User

Untitled

a guest
Sep 10th, 2019
614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.26 KB | None | 0 0
  1. image: php:7.1.29
  2.  
  3. pipelines:
  4.   branches:
  5.     build:
  6.         - step:
  7.             name: Build and test in pipelines environment
  8.             caches:
  9.            - composer
  10.             script:
  11.            - apt-get update && apt-get install -qy git unzip
  12.             - docker-php-ext-install pdo_mysql
  13.             - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  14.             - sh ./_ci/pipelines-build.sh
  15.             services:
  16.            - mysql
  17.         - step:
  18.             name: Deploy to test environment
  19.             deployment: test
  20.             script:
  21.             - pipe: atlassian/rsync-deploy:0.3.1
  22.               variables:
  23.                 USER: $SSH_USER
  24.                 SERVER: $SSH_HOST
  25.                 REMOTE_PATH: $DEPLOY_REMOTE_PATH
  26.                 LOCAL_PATH: '.'
  27.                 DEBUG: 'false'
  28.                 EXTRA_ARGS: '--exclude-from ./_ci/test-deploy-rsync-deploy-exclude-list.txt --delete --perms'
  29.             - apt-get update &&  apt-get install -y openssh-client
  30.             - cat ./_ci/test-deploy.sh | ssh -T $SSH_USER@$SSH_HOST
  31.  
  32. definitions:
  33.   services:
  34.     mysql:
  35.       image: mysql:5.7
  36.       variables:
  37.         MYSQL_DATABASE: 'pipelines'
  38.         MYSQL_ROOT_PASSWORD: 'let_me_in'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement