-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
45 lines (43 loc) · 949 Bytes
/
wercker.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
box: islands5/ruby23
no-response-timeout: 30
command-timeout: 60
services:
- name: db
id: mysql:5.6
env:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: lime_media_development
MYSQL_USER: mysql
MYSQL_PASSWORD: example
- name: redis
id: redis:4-alpine
build:
steps:
- script:
name: env
code: |
env
- rails-database-yml:
service: mysql-docker
- script:
name: env
code: |
env
deploy:
steps:
- bundle-install
- script:
name: make .ssh directory
code: mkdir -p "$HOME/.ssh"
- create-file:
name: write ssh key
filename: $HOME/.ssh/id_rsa
overwrite: true
hide-from-log: true
content: $wercker_PRIVATE
- script:
name: set permissions for ssh key
code: chmod 0600 $HOME/.ssh/id_rsa
- cap:
stage: $WERCKER_DEPLOYTARGET_NAME
tasks: deploy