-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
36 lines (35 loc) · 1.02 KB
/
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
box: php
# Build definition
build:
# The steps that will be executed on build
steps:
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script:
name: Serve application
code: php -S localhost:8000 >> /dev/null &
deploy:
steps:
- install-packages:
packages: git openssh-client
- add-to-known_hosts:
hostname: $SERVER_HOSTNAME
- add-ssh-key:
keyname: DOKKU
- script:
name: Initialize new repository
code: |
rm -rf .git
git init
git config --global user.name "wercker"
git config --global user.email "pleasemailus@wercker.com"
git remote add dokku dokku@$SERVER_HOSTNAME:botbusters-inicial
- script:
name: Add everything to the repository
code: |
git add .
git commit -m "Result of deploy $WERCKER_GIT_COMMIT"
- script:
name: Push to dokku
code: |
git push dokku master -f