Created
June 13, 2016 12:04
-
-
Save waxim/284c1e14284f73c075d2bc077ff32c4c to your computer and use it in GitHub Desktop.
Circle YML file
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
machine: | |
php: | |
version: 5.5.11 | |
hosts: | |
shop.x.uk.dev: 127.0.0.1 | |
dependencies: | |
override: | |
- composer install --no-interaction | |
- bundle install | |
- npm install | |
post: | |
- wget https://files.magerun.net/n98-magerun.phar && chmod +x ./n98-magerun.phar && sudo mv ./n98-magerun.phar /usr/local/bin/n98 | |
- n98 local-config:generate 127.0.0.1 ubuntu "" circle_test file admin xxcdf --no-interaction | |
- n98 db:import tests/db/clean-staging-db.sql | |
- grunt | |
deployment: | |
staging: | |
branch: develop | |
commands: | |
- zip -r current.zip htdocs/ vendor/ -x .git/* | |
- touch deploy-current.zip | |
- scp package.zip user@server.net:/path/to/deploy | |
- scp deploy-package.zip user@server.net:/path/to/deploy | |
production: | |
tag: /\d+\.\d+\.\d+/ | |
owner: org-username | |
commands: | |
- $CIRCLE_TAG > htdocs/version.txt | |
- zip -r package.zip htdocs/ vendor/ -x .git/* | |
- touch deploy-package.zip | |
- scp package.zip user@server.net:/path/to/deploy | |
- scp deploy-package.zip user@server.net:/path/to/deploy | |
- curl https://app.getsentry.com/api/hooks/release/builtin/x/xx/ -X POST -H 'Content-Type: application/json' -d '{"version": $CIRCLE_TAG}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This isn't creating a build in circle when I create a release with
1.0.0
as my tag. Any ideas?