Skip to content

Commit

Permalink
Updates build pipeline handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JRSofty committed Jan 4, 2024
1 parent 1f114af commit e26138e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
backend/conf/conf.php
phpinfo.php
sitemap-index.xml
sitemap.xml
.vscode/settings.json
backend/conf/sql/default-insert.sql
.htaccess
Expand Down
10 changes: 7 additions & 3 deletions dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ echo "*** BEGIN PACKAGE PROCESS ***"
GIT_COMMIT=$1
BUILD_NO=$2
COMMIT=${GIT_COMMIT:0:7}
VER=2.0.7
VER=2.0.8
COPYRIGHT_YEAR=2024
LAST_MOD=$(date '+%Y-%m-%dT%H:%M:%S%z')
DEPLOYNAME="../hebamme-web-deploy_${VER}_${COMMIT}_${BUILD_NO}.tar.gz"
FLYWAYNAME="../hebamme-web-flyway_${VER}_${COMMIT}_${BUILD_NO}.tar.gz"

echo "*** COPY FILES ***"

cp ./index.html ./dist/upload/index.html
cp ./sitemap.xml ./dist/upload/sitemap.xml
cp ./LICENSE ./dist/upload/LICENSE
cp ./hebamme_favicon128.ico ./dist/upload/hebamme_favicon128.ico
cp ./favicon32.ico ./dist/upload/favicon32.ico
Expand All @@ -21,7 +23,8 @@ cp ./404.html ./dist/upload/404.html
cp -R ./fonts ./dist/upload/fonts
cp -R ./js ./dist/upload/js
cp -R ./img ./dist/upload/img
cp -R ./css ./dist/upload/css
cp -R ./css/*.css ./dist/upload/css
cp -R ./css/*.map ./dist/upload/css
cp -R ./backend ./dist/upload/backend
cp -R ./admin ./dist/upload/admin

Expand All @@ -31,7 +34,8 @@ echo "*** PERFORM REPLACE ***"

grep -rl GIT_HASH ./dist | xargs sed -i 's/GIT_HASH/'${BUILD_NO}'/'
grep -rl REL_VER ./dist | xargs sed -i 's/REL_VER/'${VER}'/'
grep -rl COPYRIGHT_YEAR | xargs sed -i 's/COPYRIGHT_YEAR/'${COPYRIGHT_YEAR}'/'
grep -rl COPYRIGHT_YEAR ./dist | xargs sed -i 's/COPYRIGHT_YEAR/'${COPYRIGHT_YEAR}'/'
grep -rl LAST_MOD ./dist | xargs sed -i 's/LAST_MOD/'${LAST_MOD}'/'

echo "*** BUILD PACKAGE ***"

Expand Down
26 changes: 26 additions & 0 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->


<url>
<loc>https://hebammenpraxis-moosburg.de/</loc>
<lastmod>LAST_MOD</lastmod>
</url>
<url>
<loc>https://www.hebammenpraxis-moosburg.de/</loc>
<lastmod>LAST_MOD</lastmod>
</url>
<url>
<loc>https://hebammenpraxis-moosburg.com/</loc>
<lastmod>LAST_MOD</lastmod>
</url>
<url>
<loc>https://www.hebammenpraxis-moosburg.com/</loc>
<lastmod>LAST_MOD</lastmod>
</url>
</urlset>

0 comments on commit e26138e

Please sign in to comment.