Last active
October 19, 2019 13:07
-
-
Save AndrewBestbier/a45e9e8c1ee0ef646fe4f3f12c51302b to your computer and use it in GitHub Desktop.
.travis.yml
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
| language: node_js # (1) | |
| node_js: | |
| - 'node' | |
| services: | |
| - docker # (2) | |
| jobs: | |
| include: | |
| - stage: test | |
| script: | |
| - npm install # (3) | |
| - npm test # (4) | |
| - stage: docker-deploy-image # (5) | |
| script: | |
| - echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin | |
| - docker build -t andrewbestbier/ci-comparison-blog . | |
| - docker push andrewbestbier/ci-comparison-blog | |
| - stage: deploy | |
| script: skip | |
| deploy: # (6) | |
| provider: elasticbeanstalk | |
| access_key_id: $AWS_ACCESS_KEY_ID | |
| secret_access_key: $AWS_SECRET_ACCESS_KEY | |
| region: 'eu-west-2' | |
| app: 'CI Comparison Blog' | |
| env: 'CiComparisonBlog-env' | |
| bucket_name: 'elasticbeanstalk-eu-west-2-094505317841' | |
| bucket_path: 'CI Comparison Blog' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment