Created
April 25, 2020 17:13
-
-
Save shantanoo-desai/c175e2e60474298efb38ae19d2543ba0 to your computer and use it in GitHub Desktop.
travis.yml file for nestjs-products-api GitHub Repository
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 | |
services: | |
- 'docker' | |
node_js: | |
- "10" | |
- "12" | |
cache: | |
directories: | |
- "node_modules" | |
after_success: | |
- docker build -t nestjs-products-api . | |
before_deploy: | |
- docker login -u "$DOCKER_USERNAME" --password "$DOCKER_PASSWORD" docker.io ; | |
- docker tag nestjs-products-api $DOCKER_USERNAME/nestjs-products-api:latest | |
deploy: | |
provider: script | |
script: docker push $DOCKER_USERNAME/nestjs-products-api:latest ; | |
notifications: | |
email: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment