mirror of
https://github.com/elyby/emails-renderer.git
synced 2024-11-23 05:33:13 +05:30
0d21dc8bf8
Implemented graceful stopping.
35 lines
643 B
YAML
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
|