-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
47 lines (40 loc) · 1.35 KB
/
config.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
40
41
42
43
44
45
46
47
# Ruby CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
#
version: 3
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:16
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v2-dependencies-{{ checksum "package-lock.json" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-
- run:
name: install dependencies
command: |
npm install
- save_cache:
paths:
- ./node_modules
key: v2-dependencies-{{ checksum "package-lock.json" }}
- setup_remote_docker
- deploy:
name: Build and deploy docker image
command: |
export TIS_HTTP_ENDPOINT=https://tis-server.zmattor.me
export TIS_WS_ENDPOINT=wss://tis-server.zmattor.me
npm run build
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
# build docker image
docker build -t zackmattor/tis-client:latest .
docker tag zackmattor/tis-client:latest zackmattor/tis-client:$CIRCLE_SHA1
docker push zackmattor/tis-client:$CIRCLE_SHA1
docker push zackmattor/tis-client:latest