Skip to content

Instantly share code, notes, and snippets.

@shantanoo-desai
Created April 25, 2020 17:13
Show Gist options
  • Save shantanoo-desai/c175e2e60474298efb38ae19d2543ba0 to your computer and use it in GitHub Desktop.
Save shantanoo-desai/c175e2e60474298efb38ae19d2543ba0 to your computer and use it in GitHub Desktop.
travis.yml file for nestjs-products-api GitHub Repository
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