structure for autodeployment
This commit is contained in:
parent
dd6af287f3
commit
5492bda6d2
27
.deployment/create_info_json.php
Normal file
27
.deployment/create_info_json.php
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
if (!isset($argv[1])) {
|
||||||
|
die('No version set, please use ' . PHP_EOL .'make setup version=' . PHP_EOL);
|
||||||
|
}
|
||||||
|
$file = file_get_contents(dirname(__FILE__) . '/info.json.tpl');
|
||||||
|
$file = str_replace('%version%', $argv[1], $file);
|
||||||
|
$file = str_replace('%date%', date('d.m.Y H:i:00'), $file);
|
||||||
|
$file = str_replace('%changelog%', parseChangeLog(), $file);
|
||||||
|
|
||||||
|
$ptr = fopen('info.json', 'w');
|
||||||
|
fwrite($ptr, $file);
|
||||||
|
fclose($ptr);
|
||||||
|
|
||||||
|
|
||||||
|
system('lftp -e "put -O / info.json; bye" -u "lv-sachsen-main_ftp3,sE&xDXc8za#S" bdp.mein-verein.online');
|
||||||
|
function parseChangeLog()
|
||||||
|
{
|
||||||
|
$return = '';
|
||||||
|
foreach (file(dirname(__FILE__) . '/../changelog') as $line) {
|
||||||
|
$line = trim($line);
|
||||||
|
if ($line !== '') {
|
||||||
|
$return .= $line;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return $return;
|
||||||
|
}
|
17
.deployment/info.json
Normal file
17
.deployment/info.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "BdP Kompass",
|
||||||
|
"slug": "bdp-kompass",
|
||||||
|
"author": "Thomas Günther",
|
||||||
|
"author_profile": "https://sachsen.pfadfinden.de",
|
||||||
|
"version": "4.3.2",
|
||||||
|
"download_url": "http://lv-sachsen-main.bdp.mein-verein.online/wordpress/bdp-kompass-4.3.2.zip",
|
||||||
|
"requires": "6.0",
|
||||||
|
"tested": "6.5",
|
||||||
|
"requires_php": "8.2",
|
||||||
|
"last_updated": "02.03.2024 16:24:00",
|
||||||
|
"sections": {
|
||||||
|
"description": "Wordpress-Plugin zur Unterstützung von Stämmen im Bund der Pfadfinderinnen und Pfadfinder e.V. zur optimalen Verwaltung eurer Webseite",
|
||||||
|
"installation": "Bitte wendet euch an den LB IT, falls ihr zur Installation oder zu Updates Fragen habt.",
|
||||||
|
"changelog": "<h4>Version 4.3.1</h4><ul><li>Mehrsprachrigkeit unterstütz</li><li>Unterstützung für Smartphones</li></ul><h4>Version 4.2.1</h4><ul><li>Erweiterte Sicherheitsfunktionen implemntiert</li><li>Passwort-Policies implementiert</li><li>Integration von Limit Login Attempts (classic)</li><li>Integration von WPS Hide Login</li></ul><h4>Version 4.1.1</h4><ul><li>Erster release des Plugins</li></ul>"
|
||||||
|
}
|
||||||
|
}
|
17
.deployment/info.json.tpl
Normal file
17
.deployment/info.json.tpl
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "BdP Kompass",
|
||||||
|
"slug": "bdp-kompass",
|
||||||
|
"author": "Thomas Günther",
|
||||||
|
"author_profile": "https://sachsen.pfadfinden.de",
|
||||||
|
"version": "%version%",
|
||||||
|
"download_url": "http://lv-sachsen-main.bdp.mein-verein.online/wordpress/bdp-kompass-%version%.zip",
|
||||||
|
"requires": "6.0",
|
||||||
|
"tested": "6.5",
|
||||||
|
"requires_php": "8.2",
|
||||||
|
"last_updated": "%date%",
|
||||||
|
"sections": {
|
||||||
|
"description": "Wordpress-Plugin zur Unterstützung von Stämmen im Bund der Pfadfinderinnen und Pfadfinder e.V. zur optimalen Verwaltung eurer Webseite",
|
||||||
|
"installation": "Bitte wendet euch an den LB IT, falls ihr zur Installation oder zu Updates Fragen habt.",
|
||||||
|
"changelog": "%changelog%"
|
||||||
|
}
|
||||||
|
}
|
12
Makefile
Normal file
12
Makefile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
deploy: bdp-kompass.php
|
||||||
|
@php ./.deployment/create_info_json.php $(version)
|
||||||
|
mkdir -p ./.deployment/bdp-kompass/bdp-kompass
|
||||||
|
cp -r * ./.deployment/bdp-kompass/bdp-kompass
|
||||||
|
rm ./.deployment/bdp-kompass/bdp-kompass/changelog
|
||||||
|
rm ./.deployment/bdp-kompass/bdp-kompass/Makefile
|
||||||
|
rm -rf ./.deployment/bdp-kompass/bdp-kompass/.deployment
|
||||||
|
rm -rf ./.deployment/bdp-kompass/bdp-kompass/.git
|
||||||
|
cd ./.deployment/bdp-kompass/ && zip -qr ./bdp-kompass-$(version).zip ./bdp-kompass/
|
||||||
|
lftp -e "put -O / ./.deployment/bdp-kompass/bdp-kompass-$(version).zip; bye" -u "lv-sachsen-main_ftp3,sE&xDXc8za#S" bdp.mein-verein.online
|
||||||
|
rm -rf ./.deployment/bdp-kompass/
|
||||||
|
rm -rf ./.deployment/info.json/
|
23
changelog
Normal file
23
changelog
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<h4>Version 4.3.2</h4>
|
||||||
|
<ul>
|
||||||
|
<li>Bugfix: Zeitzone in Kalender korrigiert</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h4>Version 4.3.1</h4>
|
||||||
|
<ul>
|
||||||
|
<li>Mehrsprachigkeit unterstützt</li>
|
||||||
|
<li>Unterstützung für Smartphones</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h4>Version 4.2.1</h4>
|
||||||
|
<ul>
|
||||||
|
<li>Erweiterte Sicherheitsfunktionen implemntiert</li>
|
||||||
|
<li>Passwort-Policies implementiert</li>
|
||||||
|
<li>Integration von Limit Login Attempts (classic)</li>
|
||||||
|
<li>Integration von WPS Hide Login</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h4>Version 4.1.1</h4>
|
||||||
|
<ul>
|
||||||
|
<li>Erster release des Plugins</li>
|
||||||
|
</ul>
|
17
info.json
Normal file
17
info.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "BdP Kompass",
|
||||||
|
"slug": "bdp-kompass",
|
||||||
|
"author": "Thomas Günther",
|
||||||
|
"author_profile": "https://sachsen.pfadfinden.de",
|
||||||
|
"version": "4.3.2",
|
||||||
|
"download_url": "http://lv-sachsen-main.bdp.mein-verein.online/wordpress/bdp-kompass-4.3.2.zip",
|
||||||
|
"requires": "6.0",
|
||||||
|
"tested": "6.5",
|
||||||
|
"requires_php": "8.2",
|
||||||
|
"last_updated": "02.03.2024 17:02:00",
|
||||||
|
"sections": {
|
||||||
|
"description": "Wordpress-Plugin zur Unterstützung von Stämmen im Bund der Pfadfinderinnen und Pfadfinder e.V. zur optimalen Verwaltung eurer Webseite",
|
||||||
|
"installation": "Bitte wendet euch an den LB IT, falls ihr zur Installation oder zu Updates Fragen habt.",
|
||||||
|
"changelog": "<h4>Version 4.3.2</h4><ul><li>Bugfix: Zeitzone in Kalender korrigiert</li></ul><h4>Version 4.3.1</h4><ul><li>Mehrsprachigkeit unterstützt</li><li>Unterstützung für Smartphones</li></ul><h4>Version 4.2.1</h4><ul><li>Erweiterte Sicherheitsfunktionen implemntiert</li><li>Passwort-Policies implementiert</li><li>Integration von Limit Login Attempts (classic)</li><li>Integration von WPS Hide Login</li></ul><h4>Version 4.1.1</h4><ul><li>Erster release des Plugins</li></ul>"
|
||||||
|
}
|
||||||
|
}
|
17
info2.json
Normal file
17
info2.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "BdP Kompass",
|
||||||
|
"slug": "bdp-kompass",
|
||||||
|
"author": "Thomas Günther",
|
||||||
|
"author_profile": "https://sachsen.pfadfinden.de",
|
||||||
|
"version": "4.3.2",
|
||||||
|
"download_url": "http://lv-sachsen-main.bdp.mein-verein.online/wordpress/bdp-kompass-4.3.2.zip",
|
||||||
|
"requires": "6.0",
|
||||||
|
"tested": "6.5",
|
||||||
|
"requires_php": "8.2",
|
||||||
|
"last_updated": "02.03.2024 16:51:00",
|
||||||
|
"sections": {
|
||||||
|
"description": "Wordpress-Plugin zur Unterstützung von Stämmen im Bund der Pfadfinderinnen und Pfadfinder e.V. zur optimalen Verwaltung eurer Webseite",
|
||||||
|
"installation": "Bitte wendet euch an den LB IT, falls ihr zur Installation oder zu Updates Fragen habt.",
|
||||||
|
"changelog": "<h4>Version 4.3.1</h4><ul><li>Mehrsprachrigkeit unterstütz</li><li>Unterstützung für Smartphones</li></ul><h4>Version 4.2.1</h4><ul><li>Erweiterte Sicherheitsfunktionen implemntiert</li><li>Passwort-Policies implementiert</li><li>Integration von Limit Login Attempts (classic)</li><li>Integration von WPS Hide Login</li></ul><h4>Version 4.1.1</h4><ul><li>Erster release des Plugins</li></ul>"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user