-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
51 lines (50 loc) · 1.31 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
47
48
49
50
51
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_NAMESPACE="aux"' >> $BASH_ENV
- run:
name: "Install the @mishguru/service package"
command: |
npm install -g @mishguru/service@4
- run:
name: "Start the mysql database"
command: |
service-start-database
- run:
name: "Install dependencies"
command: |
service-install-dependencies
- run:
name: Test
command: |
service-run-tests
- run:
name: Deploy
command: |
service-push-docker-tag
service-deploy-to-rancher
workflows:
version: 2
build:
jobs:
- do_everything:
context: shared
filters:
tags:
only: /.*/