Created
April 2, 2019 12:25
-
-
Save ChechoCZ/de59c2c091c5750612663196187b6e0e to your computer and use it in GitHub Desktop.
CI/CD for Bitbucket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: php:7-fpm | |
pipelines: | |
branches: | |
master: | |
- step: | |
script: | |
- apt-get update && apt-get install -y python-dev zip libmcrypt-dev mysql-client libpng-dev | |
- docker-php-ext-install mcrypt && docker-php-ext-install pdo_mysql && docker-php-ext-install gd | |
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
- php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
- php composer-setup.php | |
- php -r "unlink('composer-setup.php');" | |
- php composer.phar install | |
- php artisan migrate | |
- curl -O https://bootstrap.pypa.io/get-pip.py | |
- python get-pip.py | |
- pip install awscli | |
- zip -r deploy.zip ./ | |
- aws s3 sync --delete . s3://sitec-deploy-aws |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment