emails-renderer/.travis.yml

35 lines
643 B
YAML
Raw Normal View History

2019-06-06 01:38:00 +05:30
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