forked from Cloudbox/Community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
142 lines (135 loc) · 3.13 KB
/
appveyor.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
---
skip_tags: true
skip_commits:
files:
- '*.md'
- '*.yml.default'
message: /\[minor\]/
image: Ubuntu1604
matrix:
fast_finish: true
# to disable automatic builds
build: off
environment:
CLOUDBOX_BRANCH: "master"
CLOUDBOX_PATH: "/home/appveyor/cloudbox"
COMMUNITY_PATH: "/home/appveyor/projects/community"
TAGS: >
airdcpp
airsonic
alltube
asshama
bazarrx
beets
bitwarden
bookstack
calibre-rdp
calibre-web
couchpotato
coder
deezloader-remix
deluge
delugevpn
embystat
epms
filebot
filezilla
funkwhale
gazee
glances
goplaxt
handbrake
heimdall
invoiceninja
jdownloader2
jellyfin
jirafeau
kitana
lazylibrarian
logarr
mediabutler
medusa
mellow
minecraft
monitorr
mylar
nextcloud
nowshowing
nzbhydra
organizrv1
ouroboros
plex2
pyload
qbittorrent
quassel
radarrx
resilio-sync
rocketchat
sickchill
sonarrx
speedtest
sshwifty
subsonic
synclounge
tdarr
thelounge
transmissionvpn
unifi
unmanic
vnstat
watchtower
wordpress
xteve
znc
init:
- sh: curl -s https://cloudbox.works/scripts/dep.sh | sudo -H sh &> /dev/null
- sh: curl -s https://cloudbox.works/scripts/repo.sh | bash &> /dev/null
install:
- sh: |
echo "=========================="
echo ""
echo "Community Branch: $APPVEYOR_REPO_BRANCH"
echo ""
cd ${COMMUNITY_PATH}
cp -n defaults/ansible.cfg.default ansible.cfg
cp -n defaults/settings.yml.default settings.yml
sudo ansible-playbook community.yml --syntax-check
RC=$?; [ $RC -eq 0 ] || exit $RC;
- sh: |
echo ""
echo "=========================="
echo ""
echo "Cloudbox Branch: $CLOUDBOX_BRANCH"
echo ""
cd ${CLOUDBOX_PATH}
rm settings.yml accounts.yml adv_settings.yml
git checkout $CLOUDBOX_BRANCH &> /dev/null
sudo ansible-playbook cloudbox.yml --syntax-check
sudo ansible-playbook cloudbox.yml --tags core \
--skip-tags sanity_check,settings \
--skip-tags kernel,hetzner,shell,rclone,system,motd,nvidia,mounts,scripts \
--extra-vars '{"continuous_integration":true}' \
&> /dev/null
- sh: |
echo ""
echo "=========================="
echo ""
echo "Community Roles:"
echo ""
cd ${COMMUNITY_PATH}
for TAG in $TAGS
do
echo --------------------------
echo ""
echo Running Tag: $TAG
sudo ansible-playbook community.yml --tags $TAG \
--skip-tags sanity_check,settings \
--extra-vars '{"continuous_integration":true}'
RC=$?; [ $RC -eq 0 ] || exit $RC;
CONTAINERS=$(comm -23 <(docker ps -a --format '{{ .Names}}' | sort) <(echo "letsencrypt\nnginx-proxy") | xargs echo -n)
docker stop $CONTAINERS &> /dev/null || true
docker rm $CONTAINERS &> /dev/null || true
docker image prune -af &> /dev/null || true
docker volume prune -f &> /dev/null || true
echo ""
done