emails-renderer/.travis.yml
ErickSkrauch 0d21dc8bf8 Add Docker configuration.
Implemented graceful stopping.
2019-06-06 01:15:10 +03:00

35 lines
643 B
YAML

language: node_js
node_js:
- "12"
cache:
yarn: true
directories:
- node_modules
stages:
- test
- name: deploy
if: branch = master
jobs:
include:
- stage: test
script:
- yarn lint
- yarn tsc
- yarn build:quiet
- stage: deploy
services:
- docker
before_script:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
script:
- export DOCKER_TAG="${TRAVIS_TAG:-dev}"
- >
docker build
--target app
-t elyby/emails-renderer:$DOCKER_TAG
.
- docker push elyby/emails-renderer:$DOCKER_TAG