-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (37 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
jobs:
include:
- stage: test
language: node_js
cache: npm
node_js:
- 12.18.3
after_success:
- npm run codecov
on:
tags: false
- stage: docker
if: NOT type = pull_request AND branch = master
sudo: required
services:
- docker
language: bash
on:
tags: false
script:
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker build --build-arg NODE_ENV=production -t eiabea/tempea-api:arm-latest .
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push eiabea/tempea-api:arm-latest
- stage: docker
sudo: required
if: NOT type = pull_request AND tag IS present
services:
- docker
language: bash
on:
tags: true
script:
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker build --build-arg NODE_ENV=production -t eiabea/tempea-api:arm-"$TRAVIS_TAG" .
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push eiabea/tempea-api:arm-"$TRAVIS_TAG"