Created
January 16, 2019 17:27
-
-
Save sr2ds/317e291add1ade1677ac2728502a1e0b to your computer and use it in GitHub Desktop.
Continuous Integration - Laravel GitLab on Heroku
This file contains hidden or 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: lorisleiva/laravel-docker:latest | |
phpunit: | |
stage: test | |
script: | |
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts | |
- cp .env.example .env | |
- php artisan key:generate | |
- phpunit --colors=never | |
production: | |
stage: deploy | |
variables: | |
HEROKU_API_KEY: $HEROKU_PRODUCTION_API_KEY | |
script: | |
- apk add ruby ruby-dev ruby-irb ruby-rake ruby-io-console ruby-bigdecimal ruby-json ruby-bundler yarn ruby-rdoc >> /dev/null | |
- apk update | |
- gem install dpl >> /dev/null | |
- dpl --provider=heroku --app=sr2ds-mercado-livre --api-key=$HEROKU_API_KEY | |
- yarn global add heroku@$HEROKU_CLI_VERSION | |
- heroku run php artisan migrate --seed --force --exit-code --app sr2ds-mercado-livre | |
- heroku run php artisan cache:clear --exit-code --app sr2ds-mercado-livre | |
- heroku run php artisan ml:anuncio --exit-code --app sr2ds-mercado-livre |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
maybe wrong in your heroku api key