-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (26 loc) · 795 Bytes
/
.travis.yml
File metadata and controls
32 lines (26 loc) · 795 Bytes
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
language: node.js
node_js:
- 14
sudo: required
services:
- docker
before_install:
- echo "REACT_APP_API_BASE_URL=$API_BASE_URL" > .env.production
- echo "REACT_APP_FILE_URL=$FILE_URL" >> .env.production
- echo "REACT_APP_MAX_FILE_SIZE=$MAX_FILE_SIZE" >> .env.production
install:
- yarn install
script:
- yarn build
after_success:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- if [ "${TRAVIS_BRANCH}" == "pre-release" ]; then
docker build -t poolchm/haribo:pre-release .;
docker push poolchm/haribo:pre-release;
elif [ -n "${TRAVIS_TAG}" ]; then
docker build -t poolchm/haribo:${TRAVIS_TAG} .;
docker push poolchm/haribo:${TRAVIS_TAG};
else
docker build -t poolchm/haribo:latest .;
docker push poolchm/haribo:latest;
fi