-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
46 lines (45 loc) · 1.26 KB
/
circle.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
version: 2
jobs:
do_everything:
docker:
- image: mishguru/circleci:latest
auth:
username: $DOCKER_USER
password: $DOCKER_PASSWORD
steps:
- setup_remote_docker
- checkout
- run:
name: "Set Up Env Vars"
command: |
echo $NPMRC > ~/.npmrc
mkdir ~/npm
echo prefix = ~/npm >> ~/.npmrc
echo 'export PATH=$PATH:~/npm/bin/' >> $BASH_ENV
echo 'export DOCKER_BASE="mishguru/fanoutbase:latest"' >> $BASH_ENV
echo 'export RANCHER_INTERNAL_DEPLOYMENT="logviewapi"' >> $BASH_ENV
echo 'export RANCHER_PRODUCTION_DEPLOYMENT="logviewapi"' >> $BASH_ENV
- run:
name: "Install the @mishguru/service package"
command: |
npm install -g @mishguru/service@4
- run:
name: "Install dependencies"
command: |
cd packages/api
service-install-dependencies
- run:
name: Deploy
command: |
cd packages/api
service-push-docker-tag
service-deploy-to-rancher
workflows:
version: 2
build:
jobs:
- do_everything:
context: shared
filters:
tags:
only: /.*/