Compare commits

..

260 Commits

Author SHA1 Message Date
LinuxServer-CI
b98b857abc
Bot Updating Package Versions 2025-12-11 10:58:03 +00:00
LinuxServer-CI
67d2f67eff
Bot Updating Package Versions 2025-12-04 10:57:26 +00:00
LinuxServer-CI
91b7acaac2
Bot Updating Package Versions 2025-11-27 10:54:50 +00:00
LinuxServer-CI
02c191c095
Bot Updating Package Versions 2025-11-20 10:56:40 +00:00
LinuxServer-CI
bfccd57e45
Bot Updating Templated Files 2025-11-20 10:49:13 +00:00
LinuxServer-CI
4d9b1c9dd0
Bot Updating Package Versions 2025-11-13 10:55:33 +00:00
LinuxServer-CI
48f130831e
Bot Updating Package Versions 2025-11-05 10:49:16 +00:00
LinuxServer-CI
261e28248f
Bot Updating Package Versions 2025-11-02 22:13:14 +00:00
LinuxServer-CI
2147dbeae9
Bot Updating Templated Files 2025-11-02 22:06:07 +00:00
LinuxServer-CI
329e11c5fe
Bot Updating Templated Files 2025-11-02 22:04:27 +00:00
Adam
51e036e40f
Merge pull request #131 from linuxserver/develop-prom 2025-11-02 22:02:43 +00:00
LinuxServer-CI
c0009409e4
Bot Updating Package Versions 2025-10-29 13:54:06 +00:00
LinuxServer-CI
a271bb8f88
Bot Updating Package Versions 2025-10-21 14:47:21 +00:00
LinuxServer-CI
cf4341f7ca
Bot Updating Templated Files 2025-10-21 14:40:27 +00:00
LinuxServer-CI
120992af1a
Bot Updating Package Versions 2025-10-21 13:04:10 +00:00
thespad
5450b26370
Merge branch 'develop' into develop-prom 2025-10-21 13:56:13 +01:00
Adam
69e602667f
Merge pull request #127 from linuxserver/develop-vips-heif 2025-10-21 13:54:21 +01:00
thespad
4230515da7
Add prometheus exporter support 2025-10-21 11:53:56 +01:00
thespad
2280e2474e
Add vips-heif 2025-10-20 21:26:00 +01:00
LinuxServer-CI
72738309ae
Bot Updating Package Versions 2025-10-16 10:53:02 +00:00
LinuxServer-CI
0cb5177bbb
Bot Updating Package Versions 2025-10-15 14:51:04 +00:00
LinuxServer-CI
bf5a52649a
Bot Updating Package Versions 2025-10-09 10:53:10 +00:00
LinuxServer-CI
fc7f2a7234
Bot Updating Package Versions 2025-10-02 10:50:14 +00:00
LinuxServer-CI
981a77f10d
Bot Updating Package Versions 2025-09-25 10:53:57 +00:00
LinuxServer-CI
023fd0ac58
Bot Updating Package Versions 2025-08-28 10:52:53 +00:00
LinuxServer-CI
b87826bc4c
Bot Updating Package Versions 2025-08-21 10:54:09 +00:00
LinuxServer-CI
366984d306
Bot Updating Package Versions 2025-08-14 10:57:34 +00:00
LinuxServer-CI
f7e582ebd2
Bot Updating Package Versions 2025-08-07 10:59:29 +00:00
LinuxServer-CI
cdd06cc1d5
Bot Updating Package Versions 2025-07-31 10:59:25 +00:00
LinuxServer-CI
19fe6e9f15
Bot Updating Package Versions 2025-07-24 10:58:47 +00:00
LinuxServer-CI
be9f0a350e
Bot Updating Package Versions 2025-07-17 10:58:30 +00:00
LinuxServer-CI
2e7a038758
Bot Updating Package Versions 2025-07-10 10:57:15 +00:00
LinuxServer-CI
a01fa24dc4
Bot Updating Package Versions 2025-07-03 11:00:55 +00:00
LinuxServer-CI
ba369b0c37
Bot Updating Templated Files 2025-07-03 10:53:26 +00:00
LinuxServer-CI
e918c012bd
Bot Updating Templated Files 2025-07-03 10:51:46 +00:00
LinuxServer-CI
ea2e279fc9
Bot Updating Package Versions 2025-07-01 13:56:29 +00:00
LinuxServer-CI
b8ec503401
Bot Updating Package Versions 2025-06-17 17:47:22 +00:00
LinuxServer-CI
8bcc15f192
Bot Updating Templated Files 2025-06-12 10:51:19 +00:00
LinuxServer-CI
273e82ff29
Bot Updating Package Versions 2025-06-06 13:22:04 +00:00
LinuxServer-CI
8e7e53d39e
Bot Updating Templated Files 2025-06-06 13:18:05 +00:00
LinuxServer-CI
6b3c566d2c
Bot Updating Templated Files 2025-06-06 13:16:19 +00:00
LinuxServer-CI
da300ea819
Bot Updating Templated Files 2025-06-06 13:15:03 +00:00
LinuxServer-CI
5a4a92b9d3
Bot Updating Templated Files 2025-06-06 13:14:39 +00:00
LinuxServer-CI
d11df6082c
Bot Updating Templated Files 2025-06-06 13:13:47 +00:00
LinuxServer-CI
e3567848e8
Bot Updating Templated Files 2025-06-06 13:13:10 +00:00
LinuxServer-CI
15bd71c456
Bot Updating Templated Files 2025-06-06 13:12:24 +00:00
LinuxServer-CI
4417441eaf
Bot Updating Templated Files 2025-06-06 13:11:54 +00:00
LinuxServer-CI
a0a09540b5
Bot Updating Templated Files 2025-06-06 13:10:54 +00:00
LinuxServer-CI
7d18072bbc
Bot Updating Templated Files 2025-06-06 13:10:15 +00:00
LinuxServer-CI
fdab6b5e92
Bot Updating Templated Files 2025-06-06 13:09:34 +00:00
LinuxServer-CI
33da5249ab
Bot Updating Templated Files 2025-06-06 13:09:00 +00:00
LinuxServer-CI
5a7d8b9f28
Bot Updating Templated Files 2025-06-06 13:08:18 +00:00
LinuxServer-CI
9b8971ac3d
Bot Updating Templated Files 2025-06-06 13:07:41 +00:00
LinuxServer-CI
56c32c5fbb
Bot Updating Templated Files 2025-06-06 13:06:46 +00:00
LinuxServer-CI
edb968e103
Bot Updating Templated Files 2025-06-06 13:05:59 +00:00
LinuxServer-CI
77b4317e7f
Bot Updating Templated Files 2025-06-06 13:05:25 +00:00
LinuxServer-CI
0279de4afa
Bot Updating Templated Files 2025-06-06 13:04:23 +00:00
Adam
be8dd09ba9
Merge pull request #114 from linuxserver/develop-3.22 2025-06-06 14:04:06 +01:00
thespad
ff23977546
Rebase to 3.22, try building with sbom & provenance again 2025-06-04 13:31:55 +01:00
LinuxServer-CI
5ab58c0b55
Bot Updating Package Versions 2025-05-22 11:00:56 +00:00
LinuxServer-CI
374271d7e9
Bot Updating Templated Files 2025-05-22 10:50:44 +00:00
LinuxServer-CI
fb0a23c1b3
Bot Updating Package Versions 2025-05-15 10:54:01 +00:00
LinuxServer-CI
cdcf74d983
Bot Updating Package Versions 2025-04-24 10:52:14 +00:00
LinuxServer-CI
a8ac01bdbc
Bot Updating Package Versions 2025-04-17 10:51:44 +00:00
LinuxServer-CI
76c1dcf16b
Bot Updating Package Versions 2025-04-09 22:24:33 +00:00
Adam
5bfc38c817
Merge pull request #113 from linuxserver/develop-usermod 2025-04-09 23:16:53 +01:00
thespad
d7631ee8f1
Remove custom adduser 2025-04-08 20:48:16 +01:00
LinuxServer-CI
0bfab1711c
Bot Updating Package Versions 2025-03-27 10:53:15 +00:00
LinuxServer-CI
83b478ada7
Bot Updating Package Versions 2025-03-20 10:49:35 +00:00
LinuxServer-CI
829cb5b05c
Bot Updating Package Versions 2025-03-13 10:50:30 +00:00
LinuxServer-CI
202a0cdcec
Bot Updating Package Versions 2025-03-06 10:51:08 +00:00
LinuxServer-CI
99b66fafcf
Bot Updating Package Versions 2025-02-27 10:48:21 +00:00
LinuxServer-CI
8a92983013
Bot Updating Package Versions 2025-02-20 10:49:32 +00:00
LinuxServer-CI
b8d4fe5bd3
Bot Updating Package Versions 2025-02-13 11:01:34 +00:00
LinuxServer-CI
f8acc9479a
Bot Updating Templated Files 2025-02-13 10:45:30 +00:00
LinuxServer-CI
12854bb26c
Bot Updating Package Versions 2025-01-30 10:51:06 +00:00
LinuxServer-CI
69b5dd1b25
Bot Updating Templated Files 2025-01-30 10:44:56 +00:00
LinuxServer-CI
c9dda097b9
Bot Updating Templated Files 2025-01-30 10:43:28 +00:00
LinuxServer-CI
927c4efd72
Bot Updating Package Versions 2025-01-23 10:53:32 +00:00
LinuxServer-CI
a2ae171bf9
Bot Updating Package Versions 2025-01-09 10:49:18 +00:00
LinuxServer-CI
92a06ea96e
Bot Updating Package Versions 2025-01-02 10:55:20 +00:00
LinuxServer-CI
4e258dc27f
Bot Updating Package Versions 2024-12-26 11:00:28 +00:00
LinuxServer-CI
63b5cb8d50
Bot Updating Templated Files 2024-12-19 10:48:06 +00:00
LinuxServer-CI
7d9de2dd3b
Bot Updating Templated Files 2024-12-15 20:24:49 +00:00
LinuxServer-CI
e73dfb505f
Bot Updating Templated Files 2024-12-15 20:23:24 +00:00
Adam
94dd1ed864
Merge pull request #108 from linuxserver/develop-fix-helpers 2024-12-15 20:21:20 +00:00
thespad
18b6930017
Update helpers for 4.3.0+ 2024-12-15 17:20:17 +00:00
LinuxServer-CI
bfa53bfba9
Bot Updating Package Versions 2024-12-12 10:52:44 +00:00
LinuxServer-CI
5b7a8e9865
Bot Updating Templated Files 2024-12-05 10:48:43 +00:00
LinuxServer-CI
cf08d80121
Bot Updating Templated Files 2024-12-04 17:20:28 +00:00
Adam
9d11ac9591
Merge pull request #105 from linuxserver/develop-fix-arm-build 2024-12-04 17:19:02 +00:00
thespad
0061f3e2b8
Remove build flags 2024-12-04 16:51:00 +00:00
thespad
213a23e051
Use default builder 2024-12-04 16:50:24 +00:00
thespad
c0e6180dd3
Fix segfault on arm build 2024-12-03 17:49:47 +00:00
LinuxServer-CI
25dd97133e
Bot Updating Package Versions 2024-11-28 10:54:24 +00:00
LinuxServer-CI
6adbbb483f
Bot Updating Package Versions 2024-11-21 10:49:35 +00:00
LinuxServer-CI
c08d095493
Bot Updating Package Versions 2024-11-14 10:58:14 +00:00
LinuxServer-CI
c3ff02bb02
Bot Updating Templated Files 2024-11-14 10:48:50 +00:00
LinuxServer-CI
cd0c32d194
Bot Updating Templated Files 2024-11-14 10:47:32 +00:00
LinuxServer-CI
db1f8ac61f
Bot Updating Package Versions 2024-11-07 10:51:46 +00:00
LinuxServer-CI
d03129d69e
Bot Updating Package Versions 2024-10-31 10:54:04 +00:00
LinuxServer-CI
f42b08daa4
Bot Updating Package Versions 2024-10-24 10:49:02 +00:00
LinuxServer-CI
dfc5fba27f
Bot Updating Package Versions 2024-10-17 10:47:57 +00:00
LinuxServer-CI
d9e4d48923
Bot Updating Package Versions 2024-10-10 10:48:03 +00:00
LinuxServer-CI
7538b254a2
Bot Updating Package Versions 2024-10-03 10:47:50 +00:00
LinuxServer-CI
9098527e9f
Bot Updating Package Versions 2024-09-30 11:42:08 +00:00
LinuxServer-CI
389072712c
Bot Updating Templated Files 2024-09-30 11:35:40 +00:00
LinuxServer-CI
73da4ce133
Bot Updating Templated Files 2024-09-30 11:34:23 +00:00
LinuxServer-CI
23277412a3
Bot Updating Templated Files 2024-09-30 11:33:08 +00:00
LinuxServer-CI
6f0efba34d
Bot Updating Package Versions 2024-09-26 10:47:20 +00:00
LinuxServer-CI
e1af7c896d
Bot Updating Package Versions 2024-09-19 10:51:02 +00:00
LinuxServer-CI
f18ac0897e
Bot Updating Package Versions 2024-09-17 16:47:00 +00:00
LinuxServer-CI
44fa89ee75
Bot Updating Package Versions 2024-09-12 10:48:50 +00:00
LinuxServer-CI
04d7b12e07
Bot Updating Package Versions 2024-09-05 10:53:09 +00:00
LinuxServer-CI
98ed1b20d7
Bot Updating Package Versions 2024-08-26 22:04:31 +00:00
Adam
f39f08826b
Rebase to 3.20, use corepack, enable active record encryption (#90)
* Use corepack, enable active record encryption
* Remove ruby forced platform for arm64
* Rebase to 3.20
* Add ARE envs
* Move gcompat from build to runtime deps, add rdoc
* Add version output
* Harmonise cleanup with glitch
2024-08-26 22:57:15 +01:00
LinuxServer-CI
95d268a8d8
Bot Updating Templated Files 2024-08-22 10:46:07 +00:00
LinuxServer-CI
2deaa1ae13 Bot Updating Templated Files 2024-08-22 10:45:01 +00:00
LinuxServer-CI
c187d7a37e Bot Updating Templated Files 2024-07-18 10:45:29 +00:00
LinuxServer-CI
0ad50694e7 Bot Updating Templated Files 2024-07-18 10:43:48 +00:00
LinuxServer-CI
f62b041126 Bot Updating Templated Files 2024-05-23 10:45:08 +00:00
LinuxServer-CI
68ba179a30 Bot Updating Templated Files 2024-05-23 10:43:17 +00:00
LinuxServer-CI
4e292de322 Bot Updating Templated Files 2024-05-16 10:43:53 +00:00
LinuxServer-CI
921cf31548 Bot Updating Templated Files 2024-05-09 10:43:22 +00:00
LinuxServer-CI
c34b07fadf Bot Updating Templated Files 2024-05-02 10:43:52 +00:00
LinuxServer-CI
5d4571ca94 Bot Updating Templated Files 2024-03-14 10:43:49 +00:00
LinuxServer-CI
d830f4319f Bot Updating Templated Files 2024-02-22 10:45:36 +00:00
LinuxServer-CI
a40642b3f1 Bot Updating Templated Files 2024-02-22 10:44:11 +00:00
LinuxServer-CI
adf7369c02 Bot Updating Templated Files 2024-01-11 10:45:36 +00:00
LinuxServer-CI
19515353cc Bot Updating Templated Files 2024-01-11 10:43:28 +00:00
LinuxServer-CI
f37edfbdfb Bot Updating Package Versions 2023-11-23 10:51:58 +00:00
LinuxServer-CI
5bce5f2165 Bot Updating Package Versions 2023-11-16 10:52:14 +00:00
LinuxServer-CI
6aa5f48af5 Bot Updating Templated Files 2023-11-16 10:44:21 +00:00
LinuxServer-CI
c8793181f2 Bot Updating Package Versions 2023-11-09 10:52:50 +00:00
LinuxServer-CI
18c8865980 Bot Updating Package Versions 2023-11-02 16:48:24 +00:00
Adam
3773a432e1
Merge pull request #80 from linuxserver/develop-rdoc 2023-11-02 16:34:24 +00:00
LinuxServer-CI
507843a498 Bot Updating Package Versions 2023-11-02 10:45:55 +00:00
TheSpad
a6d7e602bd
Install ruby-rdoc explicitly 2023-10-31 14:55:00 +00:00
Adam
b41c4d4b1d
Merge pull request #75 from linuxserver/develop-yaml 2023-10-28 17:14:43 +01:00
TheSpad
6253594a67
Add libyaml packages 2023-10-28 14:56:13 +01:00
LinuxServer-CI
a743c3ec7d Bot Updating Package Versions 2023-10-26 10:50:09 +00:00
LinuxServer-CI
77366c52fb Bot Updating Package Versions 2023-10-19 10:51:31 +00:00
LinuxServer-CI
086b403e8d Bot Updating Package Versions 2023-10-12 10:56:57 +00:00
LinuxServer-CI
943670ce24 Bot Updating Templated Files 2023-10-12 10:46:24 +00:00
LinuxServer-CI
4494a7ddde Bot Updating Templated Files 2023-10-12 10:44:15 +00:00
LinuxServer-CI
a711883878 Bot Updating Package Versions 2023-10-05 10:54:45 +00:00
LinuxServer-CI
4fa8b2d07a Bot Updating Templated Files 2023-09-26 14:16:38 +00:00
Adam
649996567c
Merge pull request #71 from linuxserver/nochown-develop 2023-09-26 15:14:22 +01:00
TheSpad
2bd73aa258
Errant backtick 2023-09-25 16:15:21 +01:00
TheSpad
8331a6ec36
Support no_chown option 2023-09-25 16:14:43 +01:00
LinuxServer-CI
19b12e7fb3 Bot Updating Templated Files 2023-09-21 20:24:59 +00:00
Adam
b923fc50f3
Merge pull request #65 from linuxserver/chown-develop 2023-09-21 21:23:39 +01:00
TheSpad
a6bf68d0d4
Fix nokogiri build on arm 2023-09-21 20:28:59 +01:00
TheSpad
35e1a972f4
Try and improve chowns to speed things up 2023-09-21 20:16:53 +01:00
LinuxServer-CI
378ab383b9 Bot Updating Package Versions 2023-09-21 10:55:41 +00:00
LinuxServer-CI
da880170b6 Bot Updating Package Versions 2023-09-19 15:38:51 +00:00
LinuxServer-CI
e0b559a028 Bot Updating Package Versions 2023-09-14 17:41:37 +00:00
LinuxServer-CI
1b48c0863f Bot Updating Package Versions 2023-09-14 10:46:11 +00:00
LinuxServer-CI
c462069463 Bot Updating Package Versions 2023-09-07 10:45:46 +00:00
LinuxServer-CI
840a267ed0 Bot Updating Package Versions 2023-09-04 20:43:59 +00:00
LinuxServer-CI
a9062b16a5 Bot Updating Package Versions 2023-08-24 10:46:20 +00:00
LinuxServer-CI
71cb78432b Bot Updating Package Versions 2023-08-22 14:25:51 +00:00
Adam
0bf5f09310
Merge pull request #62 from linuxserver/develop-smaller 2023-08-22 15:16:29 +01:00
LinuxServer-CI
c0714b092d Bot Updating Package Versions 2023-08-21 18:46:25 +00:00
TheSpad
d3e42d3883
Remove redundant delete 2023-08-21 18:28:23 +01:00
TheSpad
b35db03216
Remove node_modules only required at build time 2023-08-21 18:23:37 +01:00
TheSpad
c5044cba29
Restore libpq & libidn 2023-08-21 18:07:12 +01:00
TheSpad
0b8dd088ac
More cleanup 2023-08-21 17:46:23 +01:00
TheSpad
2b9a3ed3ad
Remove unnecessary cached files 2023-08-21 16:26:55 +01:00
LinuxServer-CI
d1959d47d1 Bot Updating Package Versions 2023-08-17 11:27:45 +00:00
LinuxServer-CI
ebac08a60b Bot Updating Package Versions 2023-08-17 11:11:45 +00:00
LinuxServer-CI
7d26842aee Bot Updating Package Versions 2023-08-17 11:02:15 +00:00
LinuxServer-CI
7f0ce1a61a Bot Updating Package Versions 2023-08-17 10:53:30 +00:00
LinuxServer-CI
ad609cc45d Bot Updating Package Versions 2023-08-10 13:54:12 +00:00
LinuxServer-CI
2942b3d4d8 Bot Updating Templated Files 2023-08-10 13:37:21 +00:00
Adam
112f1715c0
Merge pull request #57 from linuxserver/develop-3.18 2023-08-10 14:36:13 +01:00
TheSpad
f30c2e00d8
Remove openssl 1.1 compat libs 2023-08-10 11:36:58 +01:00
TheSpad
af0de765e3
Add openssl 1.1 compat libs 2023-08-08 22:07:04 +01:00
TheSpad
8761d26620
Match upstream yarn syntax & update changelog 2023-08-08 18:04:22 +01:00
LinuxServer-CI
f608ba2817 Bot Updating Package Versions 2023-08-08 14:48:14 +00:00
LinuxServer-CI
dcf85c5e15 Bot Updating Package Versions 2023-08-03 10:53:04 +00:00
LinuxServer-CI
1cf80b5199 Bot Updating Package Versions 2023-07-20 10:45:51 +00:00
LinuxServer-CI
88a5d96e6f Bot Updating Package Versions 2023-07-06 11:02:55 +00:00
LinuxServer-CI
c8166d0b1c Bot Updating Templated Files 2023-07-06 10:45:36 +00:00
LinuxServer-CI
79c2ce3ae0 Bot Updating Package Versions 2023-06-29 10:52:01 +00:00
LinuxServer-CI
3a33578211 Bot Updating Package Versions 2023-06-22 10:45:43 +00:00
LinuxServer-CI
f80b03e7c2 Bot Updating Package Versions 2023-06-15 10:52:44 +00:00
LinuxServer-CI
7d507d6e42 Bot Updating Package Versions 2023-06-08 10:54:40 +00:00
LinuxServer-CI
d31f3f89a2 Bot Updating Package Versions 2023-06-01 10:45:49 +00:00
TheSpad
4d328ef036
Move ssl.conf include to default.conf 2023-05-30 14:34:05 +01:00
TheSpad
7d12113716
Rebase to 3.18, migrate to s6v3 2023-05-30 14:32:59 +01:00
LinuxServer-CI
8d6053f475 Bot Updating Package Versions 2023-05-25 11:04:50 +00:00
LinuxServer-CI
95dac5164f Bot Updating Templated Files 2023-05-25 10:43:15 +00:00
LinuxServer-CI
55361de9e6 Bot Updating Package Versions 2023-05-18 10:45:20 +00:00
LinuxServer-CI
7dbd30a42b Bot Updating Package Versions 2023-05-11 10:49:41 +00:00
LinuxServer-CI
d1a3b067ac Bot Updating Package Versions 2023-05-04 10:53:12 +00:00
LinuxServer-CI
0630c3243a Bot Updating Package Versions 2023-04-27 10:51:20 +00:00
LinuxServer-CI
7be5aba867 Bot Updating Templated Files 2023-04-27 10:43:40 +00:00
LinuxServer-CI
5532ef47ec Bot Updating Templated Files 2023-04-27 10:42:56 +00:00
LinuxServer-CI
ac589155a9 Bot Updating Package Versions 2023-04-20 12:53:27 +02:00
LinuxServer-CI
b7b0ccc5a6 Bot Updating Package Versions 2023-04-13 05:50:20 -05:00
LinuxServer-CI
4e0ca121cf Bot Updating Package Versions 2023-04-06 12:53:44 +02:00
LinuxServer-CI
eab5bde09a Bot Updating Package Versions 2023-04-05 20:33:27 +00:00
LinuxServer-CI
8bdaef7d0e Bot Updating Templated Files 2023-04-05 20:18:35 +00:00
LinuxServer-CI
d8bf87386c Bot Updating Templated Files 2023-04-05 20:17:29 +00:00
LinuxServer-CI
7b739b1c3e Bot Updating Templated Files 2023-04-05 20:16:24 +00:00
Adam
d5636c31bb
Merge pull request #47 from linuxserver/develop-symlink-loop 2023-04-05 21:15:11 +01:00
TheSpad
841cd4105d
Fix symlink loop 2023-04-05 20:30:08 +01:00
Adam
53b902282f
Merge pull request #42 from linuxserver/develop-pid 2023-03-29 08:57:31 +01:00
LinuxServer-CI
d7ea0a8989 Bot Updating Package Versions 2023-03-28 23:45:49 -05:00
TheSpad
19c42d6270
Remove old pid on unclean shutdown 2023-03-28 21:43:30 +01:00
LinuxServer-CI
8e4e140a2a Bot Updating Package Versions 2023-03-14 23:48:02 -05:00
LinuxServer-CI
2d64194a53 Bot Updating Package Versions 2023-03-07 22:58:21 -06:00
LinuxServer-CI
e3148ee860 Bot Updating Templated Files 2023-03-07 22:41:49 -06:00
LinuxServer-CI
ba3b500519 Bot Updating Package Versions 2023-02-28 22:49:45 -06:00
LinuxServer-CI
fcc67e41d1 Bot Updating Package Versions 2023-02-21 22:49:24 -06:00
LinuxServer-CI
94be30871a Bot Updating Package Versions 2023-02-11 14:29:34 +01:00
Roxedus
df615b7a94
Merge pull request #36 from linuxserver/develop-remove-armhf 2023-02-11 14:15:05 +01:00
TheSpad
7c533b4d0e
Remove trailling / to match master 2023-02-11 12:17:07 +00:00
TheSpad
3ec2f7a505
Fix readme format 2023-02-11 11:16:52 +00:00
TheSpad
e2c5069349
Remove dummy armhf build 2023-02-11 10:00:43 +00:00
LinuxServer-CI
0664bdec16 Bot Updating Package Versions 2023-02-07 22:47:25 -06:00
LinuxServer-CI
4f5137bb6e Bot Updating Package Versions 2023-02-03 10:33:59 -06:00
LinuxServer-CI
0cce4ccc9e Bot Updating Package Versions 2023-02-01 05:47:39 +01:00
LinuxServer-CI
4c9726661b Bot Updating Templated Files 2023-01-27 10:15:13 +01:00
Adam
df90fc4ea4
Merge pull request #34 from linuxserver/alias-readme-develop 2023-01-27 09:13:53 +00:00
TheSpad
2d49276759
Fix tootctl syntax 2023-01-26 18:32:35 +00:00
LinuxServer-CI
59ef270dc7 Bot Updating Templated Files 2023-01-26 10:05:32 -06:00
Adam
818732b9ea
Merge pull request #32 from linuxserver/aliases-develop 2023-01-26 16:04:11 +00:00
TheSpad
f72497fe85
Fix typo 2023-01-26 14:56:53 +00:00
TheSpad
b2c95a77b0
Add aliases to support secrets 2023-01-26 14:55:28 +00:00
TheSpad
43384ffefc
Remove duplicate packages 2023-01-26 14:55:17 +00:00
LinuxServer-CI
a06c09f35b Bot Updating Package Versions 2023-01-24 22:47:07 -06:00
LinuxServer-CI
c0d67a4042 Bot Updating Package Versions 2023-01-20 15:27:49 +01:00
LinuxServer-CI
c3c3f368b9 Bot Updating Package Versions 2023-01-18 06:04:59 +01:00
LinuxServer-CI
cf66615177 Bot Updating Package Versions 2022-12-30 18:34:29 +01:00
Adam
2a4a3590dc
Merge pull request #24 from linuxserver/develop-sidekiq 2022-12-30 17:21:19 +00:00
TheSpad
8dab49071c
Fix db prep logic 2022-12-30 16:42:32 +00:00
TheSpad
4f7d213bf2
Support split sidekiq queues. (dev) 2022-12-30 15:07:49 +00:00
LinuxServer-CI
0d1330bcbe Bot Updating Package Versions 2022-12-20 18:45:29 +01:00
aptalca
3ae2820621
Merge pull request #23 from linuxserver/develop-armhf
fix armhf build to log message (develop)
2022-12-20 12:33:11 -05:00
aptalca
8324bf77bc fix armhf build to log message 2022-12-20 11:03:30 -05:00
LinuxServer-CI
66b6609529 Bot Updating Templated Files 2022-11-29 22:46:45 -06:00
LinuxServer-CI
b037678a29 Bot Updating Templated Files 2022-11-29 22:45:32 -06:00
LinuxServer-CI
d2b32c760f Bot Updating Templated Files 2022-11-29 22:44:18 -06:00
Roxedus
5d7d3a1001
Merge pull request #16 from linuxserver/tune-chown-develop 2022-11-27 23:25:11 +01:00
TheSpad
819bf7ad19
Tweak wording, add links. 2022-11-27 21:46:09 +00:00
TheSpad
7daa62da1d
Consistency 2022-11-27 21:36:20 +00:00
TheSpad
ef1098ae38
Don't recursively chown 2022-11-27 21:35:57 +00:00
TheSpad
644f49bbcd
Add proxying note 2022-11-24 18:08:00 +00:00
TheSpad
55c24a656b
Don't chown /config/mastodon to speed up init 2022-11-23 16:40:09 +00:00
Adam
ace8ce1975
Merge pull request #12 from linuxserver/cleanup-develop 2022-11-15 15:26:37 +00:00
TheSpad
e26b5ca4b0
Clean up path 2022-11-15 14:05:22 +00:00
TheSpad
206deb4ee9
Disable php-fpm service 2022-11-15 14:05:18 +00:00
Adam
8ea787747c
Merge pull request #7 from linuxserver/arm-native-gems-develop 2022-11-11 17:40:05 +00:00
TheSpad
6483705401
Force Ruby to actually install arm deps 2022-11-11 14:41:01 +00:00
LinuxServer-CI
47bba8da84 Bot Updating Package Versions 2022-11-11 02:37:27 -06:00
LinuxServer-CI
107f410465 Bot Updating Templated Files 2022-11-11 02:25:21 -06:00
LinuxServer-CI
ea3aa2d602 Bot Updating Package Versions 2022-11-08 16:55:13 -06:00
Adam
bd8b92425d
Add develop branch (#2) 2022-11-08 22:43:37 +00:00
14 changed files with 155 additions and 163 deletions

View File

@ -24,7 +24,7 @@
## Readme
If you would like to change our readme, please __**do not**__ directly edit the readme, as it is auto-generated on each commit.
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-mastodon/edit/main/readme-vars.yml).
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-mastodon/edit/develop/readme-vars.yml).
These variables are used in a template for our [Jenkins Builder](https://github.com/linuxserver/docker-jenkins-builder) as part of an ansible play.
Most of these variables are also carried over to [docs.linuxserver.io](https://docs.linuxserver.io/images/docker-mastodon)
@ -115,7 +115,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Update the changelog
If you are modifying the Dockerfiles or any of the startup scripts in [root](https://github.com/linuxserver/docker-mastodon/tree/main/root), add an entry to the changelog
If you are modifying the Dockerfiles or any of the startup scripts in [root](https://github.com/linuxserver/docker-mastodon/tree/develop/root), add an entry to the changelog
```yml
changelogs:

View File

@ -21,7 +21,7 @@
------------------------------
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-mastodon/blob/main/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-mastodon/blob/develop/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
------------------------------

View File

@ -7,31 +7,31 @@ permissions:
contents: read
jobs:
external-trigger-main:
external-trigger-develop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: External Trigger
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/develop'
env:
SKIP_EXTERNAL_TRIGGER: ${{ vars.SKIP_EXTERNAL_TRIGGER }}
run: |
printf "# External trigger for docker-mastodon\n\n" >> $GITHUB_STEP_SUMMARY
if grep -q "^mastodon_main_" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
if grep -q "^mastodon_develop_" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`mastodon_main_\`; will skip trigger if version matches." >> $GITHUB_STEP_SUMMARY
elif grep -q "^mastodon_main" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`mastodon_develop_\`; will skip trigger if version matches." >> $GITHUB_STEP_SUMMARY
elif grep -q "^mastodon_develop" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`mastodon_main\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`mastodon_develop\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
exit 0
fi
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
echo "> External trigger running off of main branch. To disable this trigger, add \`mastodon_main\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
echo "> External trigger running off of develop branch. To disable this trigger, add \`mastodon_develop\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/mastodon/mastodon/releases/latest" | jq -r '. | .tag_name')
echo "Type is \`github_stable\`" >> $GITHUB_STEP_SUMMARY
if grep -q "^mastodon_main_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/mastodon/mastodon/releases" | jq -r '. | first(.[] | select(.prerelease==true)) | .tag_name')
echo "Type is \`custom_json\`" >> $GITHUB_STEP_SUMMARY
if grep -q "^mastodon_develop_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` matches current external release; skipping trigger." >> $GITHUB_STEP_SUMMARY
exit 0
@ -39,7 +39,7 @@ jobs:
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "> Can't retrieve external version, exiting" >> $GITHUB_STEP_SUMMARY
FAILURE_REASON="Can't retrieve external version for mastodon branch main"
FAILURE_REASON="Can't retrieve external version for mastodon branch develop"
GHA_TRIGGER_URL="https://github.com/linuxserver/docker-mastodon/actions/runs/${{ github.run_id }}"
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n**Trigger URL:** '"${GHA_TRIGGER_URL}"' \n"}],
@ -50,7 +50,7 @@ jobs:
echo "Sanitized external version: \`${EXT_RELEASE_SANITIZED}\`" >> $GITHUB_STEP_SUMMARY
echo "Retrieving last pushed version" >> $GITHUB_STEP_SUMMARY
image="linuxserver/mastodon"
tag="latest"
tag="develop"
token=$(curl -sX GET \
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmastodon%3Apull" \
| jq -r '.token')
@ -96,7 +96,7 @@ jobs:
if [ -z "${IMAGE_VERSION}" ]; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "Can't retrieve last pushed version, exiting" >> $GITHUB_STEP_SUMMARY
FAILURE_REASON="Can't retrieve last pushed version for mastodon tag latest"
FAILURE_REASON="Can't retrieve last pushed version for mastodon tag develop"
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
@ -106,14 +106,14 @@ jobs:
if [ "${EXT_RELEASE_SANITIZED}" == "${IMAGE_VERSION}" ]; then
echo "Sanitized version \`${EXT_RELEASE_SANITIZED}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY
exit 0
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-mastodon/job/main/lastBuild/api/json | jq -r '.building') == "true" ]; then
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-mastodon/job/develop/lastBuild/api/json | jq -r '.building') == "true" ]; then
echo "New version \`${EXT_RELEASE}\` found; but there already seems to be an active build on Jenkins; exiting" >> $GITHUB_STEP_SUMMARY
exit 0
else
if [[ "${artifacts_found}" == "false" ]]; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "> New version detected, but not all artifacts are published yet; skipping trigger" >> $GITHUB_STEP_SUMMARY
FAILURE_REASON="New version ${EXT_RELEASE} for mastodon tag latest is detected, however not all artifacts are uploaded to upstream release yet. Will try again later."
FAILURE_REASON="New version ${EXT_RELEASE} for mastodon tag develop is detected, however not all artifacts are uploaded to upstream release yet. Will try again later."
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
@ -124,7 +124,7 @@ jobs:
echo "All artifacts seem to be uploaded." >> $GITHUB_STEP_SUMMARY
fi
response=$(curl -iX POST \
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-mastodon/job/main/buildWithParameters?PACKAGE_CHECK=false \
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-mastodon/job/develop/buildWithParameters?PACKAGE_CHECK=false \
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
echo "Jenkins [job queue url](${response%$'\r'})" >> $GITHUB_STEP_SUMMARY
echo "Sleeping 10 seconds until job starts" >> $GITHUB_STEP_SUMMARY
@ -139,7 +139,7 @@ jobs:
--data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
--data-urlencode "Submit=Submit"
echo "**** Notifying Discord ****"
TRIGGER_REASON="A version change was detected for mastodon tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE_SANITIZED}"
TRIGGER_REASON="A version change was detected for mastodon tag develop. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE_SANITIZED}"
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
"description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}

View File

@ -15,5 +15,5 @@ jobs:
- uses: actions/first-interaction@v1
with:
issue-message: 'Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.'
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-mastodon/blob/main/.github/PULL_REQUEST_TEMPLATE.md)!'
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-mastodon/blob/develop/.github/PULL_REQUEST_TEMPLATE.md)!'
repo-token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -11,8 +11,7 @@ LABEL maintainer="thespad"
ENV RAILS_ENV="production" \
NODE_ENV="production" \
PATH="${PATH}:/app/www/bin" \
S6_STAGE2_HOOK="/init-hook" \
MASTODON_USE_LIBVIPS="true"
S6_STAGE2_HOOK="/init-hook"
RUN \
apk add --no-cache \
@ -43,8 +42,8 @@ RUN \
echo "**** install mastodon ****" && \
mkdir -p /app/www && \
if [ -z ${MASTODON_VERSION+x} ]; then \
MASTODON_VERSION=$(curl -sX GET "https://api.github.com/repos/mastodon/mastodon/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
MASTODON_VERSION=$(curl -sX GET "https://api.github.com/repos/mastodon/mastodon/releases" \
| jq -r 'first(.[] | select(.prerelease==true)) | .tag_name'); \
fi && \
curl -s -o \
/tmp/mastodon.tar.gz -L \
@ -105,7 +104,7 @@ RUN \
-o -name '*LICENSE*' \
-o -name 'Rakefile' \
-o -name '.*' \) \
-type f -delete
-type f -delete
COPY root/ /

View File

@ -11,8 +11,7 @@ LABEL maintainer="thespad"
ENV RAILS_ENV="production" \
NODE_ENV="production" \
PATH="${PATH}:/app/www/bin" \
S6_STAGE2_HOOK="/init-hook" \
MASTODON_USE_LIBVIPS="true"
S6_STAGE2_HOOK="/init-hook"
RUN \
apk add --no-cache \
@ -45,8 +44,8 @@ RUN \
echo "**** install mastodon ****" && \
mkdir -p /app/www && \
if [ -z ${MASTODON_VERSION+x} ]; then \
MASTODON_VERSION=$(curl -sX GET "https://api.github.com/repos/mastodon/mastodon/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
MASTODON_VERSION=$(curl -sX GET "https://api.github.com/repos/mastodon/mastodon/releases" \
| jq -r 'first(.[] | select(.prerelease==true)) | .tag_name'); \
fi && \
curl -s -o \
/tmp/mastodon.tar.gz -L \
@ -107,7 +106,7 @@ RUN \
-o -name '*LICENSE*' \
-o -name 'Rakefile' \
-o -name '.*' \) \
-type f -delete
-type f -delete
COPY root/ /

133
Jenkinsfile vendored
View File

@ -19,6 +19,8 @@ pipeline {
DOCKERHUB_TOKEN=credentials('docker-hub-ci-pat')
QUAYIO_API_TOKEN=credentials('quayio-repo-api-token')
GIT_SIGNING_KEY=credentials('484fbca6-9a4f-455e-b9e3-97ac98785f5f')
JSON_URL='https://api.github.com/repos/mastodon/mastodon/releases'
JSON_PATH='first(.[] | select(.prerelease==true)) | .tag_name'
EXT_GIT_BRANCH = 'main'
EXT_USER = 'mastodon'
EXT_REPO = 'mastodon'
@ -79,7 +81,7 @@ pipeline {
script{
env.EXIT_STATUS = ''
env.LS_RELEASE = sh(
script: '''docker run --rm quay.io/skopeo/stable:v1 inspect docker://ghcr.io/${LS_USER}/${CONTAINER_NAME}:latest 2>/dev/null | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''',
script: '''docker run --rm quay.io/skopeo/stable:v1 inspect docker://ghcr.io/${LS_USER}/${CONTAINER_NAME}:develop 2>/dev/null | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''',
returnStdout: true).trim()
env.LS_RELEASE_NOTES = sh(
script: '''cat readme-vars.yml | awk -F \\" '/date: "[0-9][0-9].[0-9][0-9].[0-9][0-9]:/ {print $4;exit;}' | sed -E ':a;N;$!ba;s/\\r{0,1}\\n/\\\\n/g' ''',
@ -112,7 +114,7 @@ pipeline {
script{
env.LS_TAG_NUMBER = sh(
script: '''#! /bin/bash
tagsha=$(git rev-list -n 1 ${LS_RELEASE} 2>/dev/null)
tagsha=$(git rev-list -n 1 develop-${LS_RELEASE} 2>/dev/null)
if [ "${tagsha}" == "${COMMIT_SHA}" ]; then
echo ${LS_RELEASE_NUMBER}
elif [ -z "${GIT_COMMIT}" ]; then
@ -145,21 +147,14 @@ pipeline {
/* ########################
External Release Tagging
######################## */
// If this is a stable github release use the latest endpoint from github to determine the ext tag
stage("Set ENV github_stable"){
// If this is a custom json endpoint parse the return to get external tag
stage("Set ENV custom_json"){
steps{
script{
env.EXT_RELEASE = sh(
script: '''curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. | .tag_name' ''',
script: '''curl -s ${JSON_URL} | jq -r ". | ${JSON_PATH}" ''',
returnStdout: true).trim()
}
}
}
// If this is a stable or devel github release generate the link for the build message
stage("Set ENV github_link"){
steps{
script{
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/releases/tag/' + env.EXT_RELEASE
env.RELEASE_LINK = env.JSON_URL
}
}
}
@ -197,10 +192,10 @@ pipeline {
}
}
}
// If this is a main build use live docker endpoints
// If this is a develop build use live docker endpoints
stage("Set ENV live build"){
when {
branch "main"
branch "develop"
environment name: 'CHANGE_ID', value: ''
}
steps {
@ -210,13 +205,13 @@ pipeline {
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/' + env.CONTAINER_NAME
env.QUAYIMAGE = 'quay.io/linuxserver.io/' + env.CONTAINER_NAME
if (env.MULTIARCH == 'true') {
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
env.CI_TAGS = 'amd64-develop-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-develop-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
} else {
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
env.CI_TAGS = 'develop-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
}
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
env.META_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN
env.META_TAG = 'develop-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
env.EXT_RELEASE_TAG = 'develop-version-' + env.EXT_RELEASE_CLEAN
env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'
env.CITEST_IMAGETAG = 'latest'
}
@ -225,7 +220,7 @@ pipeline {
// If this is a dev build use dev docker endpoints
stage("Set ENV dev build"){
when {
not {branch "main"}
not {branch "develop"}
environment name: 'CHANGE_ID', value: ''
}
steps {
@ -235,13 +230,13 @@ pipeline {
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lsiodev-' + env.CONTAINER_NAME
env.QUAYIMAGE = 'quay.io/linuxserver.io/lsiodev-' + env.CONTAINER_NAME
if (env.MULTIARCH == 'true') {
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
env.CI_TAGS = 'amd64-develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm64v8-develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
} else {
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
env.CI_TAGS = 'develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
}
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN
env.META_TAG = 'develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
env.EXT_RELEASE_TAG = 'develop-version-' + env.EXT_RELEASE_CLEAN
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DEV_DOCKERHUB_IMAGE + '/tags/'
env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'
env.CITEST_IMAGETAG = 'develop'
@ -260,13 +255,13 @@ pipeline {
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lspipepr-' + env.CONTAINER_NAME
env.QUAYIMAGE = 'quay.io/linuxserver.io/lspipepr-' + env.CONTAINER_NAME
if (env.MULTIARCH == 'true') {
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
env.CI_TAGS = 'amd64-develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST + '|arm64v8-develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
} else {
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
env.CI_TAGS = 'develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
}
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN
env.META_TAG = 'develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
env.EXT_RELEASE_TAG = 'develop-version-' + env.EXT_RELEASE_CLEAN
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/pull/' + env.PULL_REQUEST
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.PR_DOCKERHUB_IMAGE + '/tags/'
env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'
@ -305,7 +300,7 @@ pipeline {
// Use helper containers to render templated files
stage('Update-Templates') {
when {
branch "main"
branch "develop"
environment name: 'CHANGE_ID', value: ''
expression {
env.CONTAINER_NAME != null
@ -317,24 +312,24 @@ pipeline {
TEMPDIR=$(mktemp -d)
docker pull ghcr.io/linuxserver/jenkins-builder:latest
# Cloned repo paths for templating:
# ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch main of ${LS_USER}/${LS_REPO} for running the jenkins builder on
# ${TEMPDIR}/repo/${LS_REPO}: Cloned branch main of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github
# ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch develop of ${LS_USER}/${LS_REPO} for running the jenkins builder on
# ${TEMPDIR}/repo/${LS_REPO}: Cloned branch develop of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github
# ${TEMPDIR}/docs/docker-documentation: Cloned docs repo for pushing docs updates to Github
# ${TEMPDIR}/unraid/docker-templates: Cloned docker-templates repo to check for logos
# ${TEMPDIR}/unraid/templates: Cloned templates repo for commiting unraid template changes and pushing back to Github
git clone --branch main --depth 1 https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/docker-${CONTAINER_NAME}
git clone --branch develop --depth 1 https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/docker-${CONTAINER_NAME}
docker run --rm -v ${TEMPDIR}/docker-${CONTAINER_NAME}:/tmp -e LOCAL=true -e PUID=$(id -u) -e PGID=$(id -g) ghcr.io/linuxserver/jenkins-builder:latest
echo "Starting Stage 1 - Jenkinsfile update"
if [[ "$(md5sum Jenkinsfile | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile | awk '{ print $1 }')" ]]; then
mkdir -p ${TEMPDIR}/repo
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
cd ${TEMPDIR}/repo/${LS_REPO}
git checkout -f main
git checkout -f develop
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile ${TEMPDIR}/repo/${LS_REPO}/
git add Jenkinsfile
git commit -m 'Bot Updating Templated Files'
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
echo "Updating Jenkinsfile and exiting build, new one will trigger based on commit"
rm -Rf ${TEMPDIR}
@ -353,13 +348,13 @@ pipeline {
mkdir -p ${TEMPDIR}/repo
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
cd ${TEMPDIR}/repo/${LS_REPO}
git checkout -f main
git checkout -f develop
for i in ${TEMPLATES_TO_DELETE}; do
git rm "${i}"
done
git commit -m 'Bot Updating Templated Files'
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
echo "Deleting old/deprecated templates and exiting build, new one will trigger based on commit"
rm -Rf ${TEMPDIR}
@ -374,20 +369,20 @@ pipeline {
sed -i 's|^changelogs:|# init diagram\\ninit_diagram:\\n\\n# changelog\\nchangelogs:|' readme-vars.yml
fi
mkdir -p ${TEMPDIR}/d2
docker run --rm -v ${TEMPDIR}/d2:/output -e PUID=$(id -u) -e PGID=$(id -g) -e RAW="true" ghcr.io/linuxserver/d2-builder:latest ${CONTAINER_NAME}:latest
docker run --rm -v ${TEMPDIR}/d2:/output -e PUID=$(id -u) -e PGID=$(id -g) -e RAW="true" ghcr.io/linuxserver/d2-builder:latest ${CONTAINER_NAME}:develop
ls -al ${TEMPDIR}/d2
yq -ei ".init_diagram |= load_str(\\"${TEMPDIR}/d2/${CONTAINER_NAME}-latest.d2\\")" readme-vars.yml
yq -ei ".init_diagram |= load_str(\\"${TEMPDIR}/d2/${CONTAINER_NAME}-develop.d2\\")" readme-vars.yml
if [[ $(md5sum readme-vars.yml | cut -c1-8) != $(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/readme-vars.yml | cut -c1-8) ]]; then
echo "'init_diagram' has been updated. Updating repo and exiting build, new one will trigger based on commit."
mkdir -p ${TEMPDIR}/repo
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
cd ${TEMPDIR}/repo/${LS_REPO}
git checkout -f main
git checkout -f develop
cp ${WORKSPACE}/readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/readme-vars.yml
git add readme-vars.yml
git commit -m 'Bot Updating Templated Files'
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
echo "Updating templates and exiting build, new one will trigger based on commit"
rm -Rf ${TEMPDIR}
@ -404,7 +399,7 @@ pipeline {
mkdir -p ${TEMPDIR}/repo
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
cd ${TEMPDIR}/repo/${LS_REPO}
git checkout -f main
git checkout -f develop
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
@ -417,8 +412,8 @@ pipeline {
fi
git add readme-vars.yml ${TEMPLATED_FILES}
git commit -m 'Bot Updating Templated Files'
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
echo "Updating templates and exiting build, new one will trigger based on commit"
rm -Rf ${TEMPDIR}
@ -519,7 +514,7 @@ pipeline {
// Exit the build if the Templated files were just updated
stage('Template-exit') {
when {
branch "main"
branch "develop"
environment name: 'CHANGE_ID', value: ''
environment name: 'FILES_UPDATED', value: 'true'
expression {
@ -532,10 +527,10 @@ pipeline {
}
}
}
// If this is a main build check the S6 service file perms
// If this is a develop build check the S6 service file perms
stage("Check S6 Service file Permissions"){
when {
branch "main"
branch "develop"
environment name: 'CHANGE_ID', value: ''
environment name: 'EXIT_STATUS', value: ''
}
@ -788,7 +783,7 @@ pipeline {
// Take the image we just built and dump package versions for comparison
stage('Update-packages') {
when {
branch "main"
branch "develop"
environment name: 'CHANGE_ID', value: ''
environment name: 'EXIT_STATUS', value: ''
}
@ -811,14 +806,14 @@ pipeline {
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
if [ "${NEW_PACKAGE_TAG}" != "${PACKAGE_TAG}" ]; then
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f main
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f develop
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
cd ${TEMPDIR}/${LS_REPO}/
wait
git add package_versions.txt
git commit -m 'Bot Updating Package Versions'
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
echo "true" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
echo "Package tag updated, stopping build process"
else
@ -836,7 +831,7 @@ pipeline {
// Exit the build if the package file was just updated
stage('PACKAGE-exit') {
when {
branch "main"
branch "develop"
environment name: 'CHANGE_ID', value: ''
environment name: 'PACKAGE_UPDATED', value: 'true'
environment name: 'EXIT_STATUS', value: ''
@ -850,7 +845,7 @@ pipeline {
// Exit the build if this is just a package check and there are no changes to push
stage('PACKAGECHECK-exit') {
when {
branch "main"
branch "develop"
environment name: 'CHANGE_ID', value: ''
environment name: 'PACKAGE_UPDATED', value: 'false'
environment name: 'EXIT_STATUS', value: ''
@ -904,7 +899,7 @@ pipeline {
-e DOCKER_LOGS_TIMEOUT=\"${CI_DELAY}\" \
-e TAGS=\"${CI_TAGS}\" \
-e META_TAG=\"${META_TAG}\" \
-e RELEASE_TAG=\"latest\" \
-e RELEASE_TAG=\"develop\" \
-e PORT=\"${CI_PORT}\" \
-e SSL=\"${CI_SSL}\" \
-e BASE=\"${DIST_IMAGE}\" \
@ -944,7 +939,7 @@ pipeline {
CACHEIMAGE=${i}
fi
done
docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${META_TAG} -t ${PUSHIMAGE}:latest -t ${PUSHIMAGE}:${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \
docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${META_TAG} -t ${PUSHIMAGE}:develop -t ${PUSHIMAGE}:${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \
{ if [[ "${PUSHIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
if [ -n "${SEMVER}" ]; then
docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \
@ -973,9 +968,9 @@ pipeline {
CACHEIMAGE=${i}
fi
done
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${META_TAG} -t ${MANIFESTIMAGE}:amd64-latest -t ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${META_TAG} -t ${MANIFESTIMAGE}:amd64-develop -t ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${META_TAG} -t ${MANIFESTIMAGE}:arm64v8-latest -t ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || \
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${META_TAG} -t ${MANIFESTIMAGE}:arm64v8-develop -t ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || \
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
if [ -n "${SEMVER}" ]; then
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \
@ -985,7 +980,7 @@ pipeline {
fi
done
for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do
docker buildx imagetools create -t ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest || \
docker buildx imagetools create -t ${MANIFESTIMAGE}:develop ${MANIFESTIMAGE}:amd64-develop ${MANIFESTIMAGE}:arm64v8-develop || \
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
docker buildx imagetools create -t ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} || \
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
@ -1003,7 +998,7 @@ pipeline {
// If this is a public release tag it in the LS Github
stage('Github-Tag-Push-Release') {
when {
branch "main"
branch "develop"
expression {
env.LS_RELEASE != env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
}
@ -1019,21 +1014,21 @@ pipeline {
else
AUTO_RELEASE_NOTES=$(curl -fsL -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github+json" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases/generate-notes \
-d '{"tag_name":"'${META_TAG}'",\
"target_commitish": "main"}' \
"target_commitish": "develop"}' \
| jq -r '.body' | sed 's|## What.s Changed||')
fi
echo "Pushing New tag for current commit ${META_TAG}"
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
-d '{"tag":"'${META_TAG}'",\
"object": "'${COMMIT_SHA}'",\
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to main",\
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to develop",\
"type": "commit",\
"tagger": {"name": "LinuxServer-CI","email": "ci@linuxserver.io","date": "'${GITHUB_DATE}'"}}'
echo "Pushing New release for Tag"
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. |.body' > releasebody.json
echo "Data change at JSON endpoint ${JSON_URL}" > releasebody.json
jq -n \
--arg tag_name "$META_TAG" \
--arg target_commitish "main" \
--arg target_commitish "develop" \
--arg ci_url "${CI_URL:-N/A}" \
--arg ls_notes "$AUTO_RELEASE_NOTES" \
--arg remote_notes "$(cat releasebody.json)" \
@ -1043,7 +1038,7 @@ pipeline {
"name": $tag_name,
"body": ("**CI Report:**\\n\\n" + $ci_url + "\\n\\n**LinuxServer Changes:**\\n\\n" + $ls_notes + "\\n\\n**Remote Changes:**\\n\\n" + $remote_notes),
"draft": false,
"prerelease": false }' > releasebody.json.done
"prerelease": true }' > releasebody.json.done
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done
'''
}
@ -1051,14 +1046,14 @@ pipeline {
// Add protection to the release branch
stage('Github-Release-Branch-Protection') {
when {
branch "main"
branch "develop"
environment name: 'CHANGE_ID', value: ''
environment name: 'EXIT_STATUS', value: ''
}
steps {
echo "Setting up protection for release branch main"
echo "Setting up protection for release branch develop"
sh '''#! /bin/bash
curl -H "Authorization: token ${GITHUB_TOKEN}" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/main/protection \
curl -H "Authorization: token ${GITHUB_TOKEN}" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/develop/protection \
-d $(jq -c . << EOF
{
"required_status_checks": null,

View File

@ -1,5 +1,5 @@
<!-- DO NOT EDIT THIS FILE MANUALLY -->
<!-- Please read https://github.com/linuxserver/docker-mastodon/blob/main/.github/CONTRIBUTING.md -->
<!-- Please read https://github.com/linuxserver/docker-mastodon/blob/develop/.github/CONTRIBUTING.md -->
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)
[![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
@ -34,7 +34,7 @@ Find us at:
[![Quay.io](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Quay.io)](https://quay.io/repository/linuxserver.io/mastodon)
[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/mastodon.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/linuxserver/mastodon)
[![Docker Stars](https://img.shields.io/docker/stars/linuxserver/mastodon.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=stars&logo=docker)](https://hub.docker.com/r/linuxserver/mastodon)
[![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555&logoColor=ffffff&style=for-the-badge&jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-mastodon%2Fjob%2Fmain%2F&logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-mastodon/job/main/)
[![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555&logoColor=ffffff&style=for-the-badge&jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-mastodon%2Fjob%2Fdevelop%2F&logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-mastodon/job/develop/)
[Mastodon](https://github.com/mastodon/mastodon/) is a free, open-source social network server based on ActivityPub where users can follow friends and discover new ones..
@ -44,7 +44,7 @@ Find us at:
We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
Simply pulling `lscr.io/linuxserver/mastodon:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
Simply pulling `lscr.io/linuxserver/mastodon:develop` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
The architectures supported by this image are:
@ -67,11 +67,11 @@ This image provides various versions that are available via tags. Please read th
We provide aliases for the common commands that execute in the correct context so that environment variables from secrets are available to them:
* To generate keys for `SECRET_KEY_BASE` & `OTP_SECRET` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:latest generate-secret` once for each.
* To generate keys for `SECRET_KEY_BASE` & `OTP_SECRET` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:develop generate-secret` once for each.
* To generate keys for `VAPID_PRIVATE_KEY` & `VAPID_PUBLIC_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:latest generate-vapid`
* To generate keys for `VAPID_PRIVATE_KEY` & `VAPID_PUBLIC_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:develop generate-vapid`
* To generate keys for `ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY`, `ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT`, & `ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:latest generate-active-record`
* To generate keys for `ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY`, `ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT`, & `ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:develop generate-active-record`
Both of the secret generation aliases above can be run without any other setup having been carried out.
@ -114,7 +114,7 @@ To help you get started creating a container from this image you can either use
---
services:
mastodon:
image: lscr.io/linuxserver/mastodon:latest
image: lscr.io/linuxserver/mastodon:develop
container_name: mastodon
environment:
- PUID=1000
@ -218,7 +218,7 @@ docker run -d \
-p 9394:9394 `#optional` \
-v /path/to/mastodon/config:/config \
--restart unless-stopped \
lscr.io/linuxserver/mastodon:latest
lscr.io/linuxserver/mastodon:develop
```
## Parameters
@ -246,9 +246,9 @@ Containers are configured using parameters passed at runtime (such as those abov
| `-e ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=` | Deterministic key for [Active Record Encryption](https://github.com/mastodon/mastodon/pull/29831/files). |
| `-e ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=` | Derivation salt for [Active Record Encryption](https://github.com/mastodon/mastodon/pull/29831/files). |
| `-e SECRET_KEY_BASE=` | Browser session secret. Changing it will break all active browser sessions. |
| `-e OTP_SECRET=` | MFA secret. Changing it after initial setup will break two-factor authentication. |
| `-e VAPID_PRIVATE_KEY=` | Push notification private key. Changing it after initial setup will break push notifications. |
| `-e VAPID_PUBLIC_KEY=` | Push notification public key. Changing it after initial setup will break push notifications. |
| `-e OTP_SECRET=` | MFA secret. Changing it will break two-factor authentication. |
| `-e VAPID_PRIVATE_KEY=` | Push notification private key. Changing it will break push notifications. |
| `-e VAPID_PUBLIC_KEY=` | Push notification public key. Changing it will break push notifications. |
| `-e SMTP_SERVER=mail.example.com` | SMTP server for email notifications |
| `-e SMTP_PORT=25` | SMTP server port |
| `-e SMTP_LOGIN=` | SMTP username |
@ -337,7 +337,7 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
* Image version number:
```bash
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/mastodon:latest
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/mastodon:develop
```
## Updating Info
@ -385,7 +385,7 @@ Below are the instructions for updating containers:
* Update the image:
```bash
docker pull lscr.io/linuxserver/mastodon:latest
docker pull lscr.io/linuxserver/mastodon:develop
```
* Stop the running container:
@ -422,7 +422,7 @@ cd docker-mastodon
docker build \
--no-cache \
--pull \
-t lscr.io/linuxserver/mastodon:latest .
-t lscr.io/linuxserver/mastodon:develop .
```
The ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`
@ -437,12 +437,11 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
* **21.10.25:** - Add prometheus exporter support.
* **20.10.25:** - Add vips-heif.
* **08.07.25:** - Rebase to Alpine 3.22.
* **06.06.25:** - Rebase to Alpine 3.21, replace deprecated imagemagick with vips.
* **08.10.24:** - Rebase to Alpine 3.20, enable [Active Record Encryption](https://github.com/mastodon/mastodon/pull/29831/files). Existing users should update their nginx confs to avoid http2 deprecation warnings.
* **21.09.23:** - Rebase to Alpine 3.18, migrate to s6v3.
* **25.05.23:** - Adjust apk flags.
* **06.06.25:** - Rebase to Alpine 3.22, replace deprecated imagemagick with vips.
* **26.08.24:** - Rebase to Alpine 3.20, enable [Active Record Encryption](https://github.com/mastodon/mastodon/pull/29831/files). Existing users should update their nginx confs to avoid http2 deprecation warnings.
* **08.08.23:** - Rebase to Alpine 3.18, migrate to s6v3
* **09.02.23:** - Add Glitch branch.
* **09.01.23:** - Updated nginx conf to fix bring inline with Mastodon configuration (fixes Elk integration).
* **26.01.23:** - Add aliases for key generation & tootctl to better support secrets.
* **19.12.22:** - Support separate sidekiq queue instances.
* **08.11.22:** - Add develop branch.
* **05.11.22:** - Initial Release.

View File

@ -2,12 +2,14 @@
# jenkins variables
project_name: docker-mastodon
external_type: github_stable
release_type: stable
release_tag: latest
ls_branch: main
external_type: custom_json
release_type: prerelease
release_tag: develop
ls_branch: develop
image_builder: default
repo_vars:
- JSON_URL='https://api.github.com/repos/mastodon/mastodon/releases'
- JSON_PATH='first(.[] | select(.prerelease==true)) | .tag_name'
- EXT_GIT_BRANCH = 'main'
- EXT_USER = 'mastodon'
- EXT_REPO = 'mastodon'

View File

@ -55,7 +55,7 @@ anstyle-query 1.0.2 rust-c
anyhow 1.0.79 rust-crate
anyhow 1.0.98 rust-crate
aom-libs 3.12.1-r0 apk
apache2-utils 2.4.66-r0 apk
apache2-utils 2.4.65-r0 apk
apk-tools 2.14.9-r3 apk
apr 1.7.5-r0 apk
apr-util 1.6.3-r1 apk
@ -104,7 +104,7 @@ busybox 1.37.0-r20 apk
busybox-binsh 1.37.0-r20 apk
bytemuck 1.14.0 rust-crate
bytes 3.1.2 npm
c-ares 1.34.6-r0 apk
c-ares 1.34.5-r0 apk
ca-certificates 20250911-r0 apk
ca-certificates-bundle 20250911-r0 apk
cacache 19.0.1 npm
@ -135,7 +135,7 @@ color-convert 2.0.1 npm
color-name 1.1.4 npm
color_diff 0.1 gem
colorchoice 1.0.0 rust-crate
composer 2.9.3 binary
composer 2.9.2 binary
concurrent-ruby 1.3.5 gem
concurrent_ruby UNKNOWN java-archive
connection_pool 2.5.4 gem
@ -275,7 +275,7 @@ giflib 5.2.2-r1 apk
git 2.49.1-r0 apk
git-init-template 2.49.1-r0 apk
glib 2.84.4-r0 apk
glob 10.5.0 npm
glob 10.4.5 npm
globalid 1.3.0 gem
glslang-libs 1.4.309.0-r0 apk
gmp 6.3.0-r3 apk
@ -414,7 +414,7 @@ librist 0.2.10-r1 apk
librsvg 2.60.0-r0 apk
libsharpyuv 1.5.0-r0 apk
libsndfile 1.2.2-r2 apk
libsodium 1.0.20-r1 apk
libsodium 1.0.20-r0 apk
libspng 0.7.4-r1 apk
libsrt 1.5.3-r1 apk
libssh 0.11.2-r0 apk
@ -612,21 +612,21 @@ pg-protocol 1.10.3 npm
pg-types 2.2.0 npm
pghero 3.7.0 gem
pgpass 1.0.5 npm
php84 8.4.16-r0 apk
php84-common 8.4.16-r0 apk
php84-ctype 8.4.16-r0 apk
php84-curl 8.4.16-r0 apk
php84-fileinfo 8.4.16-r0 apk
php84-fpm 8.4.16-r0 apk
php84-iconv 8.4.16-r0 apk
php84-mbstring 8.4.16-r0 apk
php84-openssl 8.4.16-r0 apk
php84-phar 8.4.16-r0 apk
php84-session 8.4.16-r0 apk
php84-simplexml 8.4.16-r0 apk
php84-xml 8.4.16-r0 apk
php84-xmlwriter 8.4.16-r0 apk
php84-zip 8.4.16-r0 apk
php84 8.4.14-r0 apk
php84-common 8.4.14-r0 apk
php84-ctype 8.4.14-r0 apk
php84-curl 8.4.14-r0 apk
php84-fileinfo 8.4.14-r0 apk
php84-fpm 8.4.14-r0 apk
php84-iconv 8.4.14-r0 apk
php84-mbstring 8.4.14-r0 apk
php84-openssl 8.4.14-r0 apk
php84-phar 8.4.14-r0 apk
php84-session 8.4.14-r0 apk
php84-simplexml 8.4.14-r0 apk
php84-xml 8.4.14-r0 apk
php84-xmlwriter 8.4.14-r0 apk
php84-zip 8.4.14-r0 apk
picomatch 4.0.3 npm
pino 9.14.0 npm
pino-abstract-transport 2.0.0 npm
@ -839,7 +839,7 @@ tty-reader 0.9.0 gem
tty-screen 0.8.2 gem
twitter-text 3.1.0 gem
type-is 1.6.18 npm
tzdata 2025c-r0 apk
tzdata 2025b-r0 apk
tzinfo 2.0.6 gem
tzinfo-data 1.2025.2 gem
un 0.3.0 gem

View File

@ -7,7 +7,6 @@ project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/ma
project_blurb: |
[{{ project_name|capitalize }}]({{ project_url }}) is a free, open-source social network server based on ActivityPub where users can follow friends and discover new ones..
project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}"
project_categories: "Social"
# supported architectures
available_architectures:
- {arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
@ -36,9 +35,9 @@ param_env_vars:
- {env_var: "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY", env_value: "", desc: "Deterministic key for [Active Record Encryption](https://github.com/mastodon/mastodon/pull/29831/files)."}
- {env_var: "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT", env_value: "", desc: "Derivation salt for [Active Record Encryption](https://github.com/mastodon/mastodon/pull/29831/files)."}
- {env_var: "SECRET_KEY_BASE", env_value: "", desc: "Browser session secret. Changing it will break all active browser sessions."}
- {env_var: "OTP_SECRET", env_value: "", desc: "MFA secret. Changing it after initial setup will break two-factor authentication."}
- {env_var: "VAPID_PRIVATE_KEY", env_value: "", desc: "Push notification private key. Changing it after initial setup will break push notifications."}
- {env_var: "VAPID_PUBLIC_KEY", env_value: "", desc: "Push notification public key. Changing it after initial setup will break push notifications."}
- {env_var: "OTP_SECRET", env_value: "", desc: "MFA secret. Changing it will break two-factor authentication."}
- {env_var: "VAPID_PRIVATE_KEY", env_value: "", desc: "Push notification private key. Changing it will break push notifications."}
- {env_var: "VAPID_PUBLIC_KEY", env_value: "", desc: "Push notification public key. Changing it will break push notifications."}
- {env_var: "SMTP_SERVER", env_value: "mail.example.com", desc: "SMTP server for email notifications"}
- {env_var: "SMTP_PORT", env_value: "25", desc: "SMTP server port"}
- {env_var: "SMTP_LOGIN", env_value: "", desc: "SMTP username"}
@ -78,11 +77,11 @@ app_setup_block_enabled: true
app_setup_block: |
We provide aliases for the common commands that execute in the correct context so that environment variables from secrets are available to them:
* To generate keys for `SECRET_KEY_BASE` & `OTP_SECRET` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:latest generate-secret` once for each.
* To generate keys for `SECRET_KEY_BASE` & `OTP_SECRET` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:develop generate-secret` once for each.
* To generate keys for `VAPID_PRIVATE_KEY` & `VAPID_PUBLIC_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:latest generate-vapid`
* To generate keys for `VAPID_PRIVATE_KEY` & `VAPID_PUBLIC_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:develop generate-vapid`
* To generate keys for `ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY`, `ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT`, & `ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:latest generate-active-record`
* To generate keys for `ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY`, `ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT`, & `ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:develop generate-active-record`
Both of the secret generation aliases above can be run without any other setup having been carried out.
@ -113,7 +112,7 @@ app_setup_block: |
This image automatically redirects to https with a self-signed certificate. If you are using a reverse proxy which validates certificates, you need to [disable this check for the container](https://docs.linuxserver.io/faq#strict-proxy).
# init diagram
init_diagram: |
"mastodon:latest": {
"mastodon:develop": {
docker-mods
base {
fix-attr +\nlegacy cont-init
@ -170,17 +169,16 @@ init_diagram: |
Base Images: {
"baseimage-alpine-nginx:3.22" <- "baseimage-alpine:3.22"
}
"mastodon:latest" <- Base Images
"mastodon:develop" <- Base Images
# changelog
changelogs:
- {date: "21.10.25:", desc: "Add prometheus exporter support."}
- {date: "20.10.25:", desc: "Add vips-heif."}
- {date: "08.07.25:", desc: "Rebase to Alpine 3.22."}
- {date: "06.06.25:", desc: "Rebase to Alpine 3.21, replace deprecated imagemagick with vips."}
- {date: "08.10.24:", desc: "Rebase to Alpine 3.20, enable [Active Record Encryption](https://github.com/mastodon/mastodon/pull/29831/files). Existing users should update their nginx confs to avoid http2 deprecation warnings."}
- {date: "21.09.23:", desc: "Rebase to Alpine 3.18, migrate to s6v3."}
- {date: "25.05.23:", desc: "Adjust apk flags."}
- {date: "06.06.25:", desc: "Rebase to Alpine 3.22, replace deprecated imagemagick with vips."}
- {date: "26.08.24:", desc: "Rebase to Alpine 3.20, enable [Active Record Encryption](https://github.com/mastodon/mastodon/pull/29831/files). Existing users should update their nginx confs to avoid http2 deprecation warnings."}
- {date: "08.08.23:", desc: "Rebase to Alpine 3.18, migrate to s6v3"}
- {date: "09.02.23:", desc: "Add Glitch branch."}
- {date: "09.01.23:", desc: "Updated nginx conf to fix bring inline with Mastodon configuration (fixes Elk integration)."}
- {date: "26.01.23:", desc: "Add aliases for key generation & tootctl to better support secrets."}
- {date: "19.12.22:", desc: "Support separate sidekiq queue instances."}
- {date: "08.11.22:", desc: "Add develop branch."}
- {date: "05.11.22:", desc: "Initial Release."}

View File

@ -1,4 +1,4 @@
## Version 2024/08/26 - Changelog: https://github.com/linuxserver/docker-mastodon/commits/main/root/defaults/nginx/site-confs/default.conf.sample
## Version 2024/08/26 - Changelog: https://github.com/linuxserver/docker-mastodon/commits/develop/root/defaults/nginx/site-confs/default.conf.sample
map $http_upgrade $connection_upgrade {
default upgrade;