-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpipeline.yml
More file actions
36 lines (35 loc) · 1.26 KB
/
pipeline.yml
File metadata and controls
36 lines (35 loc) · 1.26 KB
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
build:
tasks:
- name: setup
command: $WORKING_DIR/setup.sh
only_if: test "$WERCKER" = "true"
- name: Make $HOME/.ssh directory
command: mkdir -p $HOME/.ssh
only_if: test "$WERCKER" = "true"
- name: Put SSH publick key
command: echo "$DIGITALOCEAN_SSH_KEY_PUBLIC" > $HOME/.ssh/id_rsa.pub
only_if: test "$WERCKER" = "true"
- name: Put SSH private key
command: echo $DIGITALOCEAN_SSH_KEY_PRIVATE > $HOME/.ssh/id_rsa
only_if: test "$WERCKER" = "true"
- name: chmod 600 $HOME/.ssh/id_rsa
command: chmod 600 $HOME/.ssh/id_rsa
only_if: test "$WERCKER" = "true"
- name: vagrant plugin update vagrant-digitalocean
command: vagrant plugin update vagrant-digitalocean
only_if: test "$WERCKER" = "true"
- name: Parallel builds each OSes
parallel:
- include: $WORKING_DIR/centos7.yml
- include: $WORKING_DIR/ubuntu1604.yml
- include: $WORKING_DIR/ubuntu1804.yml
cleanup:
- name: vagrant destroy
command: vagrant destroy --force
directory: $WORKING_DIR
notify:
- type: slack
channel: serverspec
url: $SLACK_WEBHOOK_URL
icon_url: https://raw.githubusercontent.com/serverspec/serverspec-integration-test/master/walter.png
username: Walter