Compare commits

...

4 commits

Author SHA1 Message Date
9138d57429 Excludes tag= from replacement
All checks were successful
Build (and tag) Images / build (pull_request) Successful in 46s
Build (and tag) Images / build (push) Successful in 48s
2025-10-25 17:53:03 +02:00
9cf8cffee4 fix: Replace invalid docker tag characters with underscore 2025-10-25 17:53:03 +02:00
afc3828575 Merge pull request 'renamed db-user to CAMERA_SELECT_USER' (#22) from sunders-18 into main
All checks were successful
Build (and tag) Images / build (push) Successful in 47s
Reviewed-on: #22
Reviewed-by: Vincent Mahnke <vimaster@noreply.git.hamburg.ccc.de>
2025-10-25 17:52:29 +02:00
3b92dbade7 renamed db-user to CAMERA_SELECT_USER
All checks were successful
Build (and tag) Images / build (push) Successful in 47s
Build (and tag) Images / build (pull_request) Successful in 47s
2025-10-25 17:46:37 +02:00
3 changed files with 6 additions and 5 deletions

View file

@ -28,7 +28,8 @@ jobs:
if [ "${{ github.ref_name }}" = "main" ] && [ "${{ github.event_name }}" = "push" ]; then
echo "tag=latest" >> $GITHUB_OUTPUT
else
echo "tag=${{ github.ref_name }}" >> $GITHUB_OUTPUT
# renovate creates sub branches with `/`; these break the tagging in the build process
echo tag=$(echo "${{ github.ref_name }}" | sed 's/[^a-zA-Z0-9._-]/_/g') >> $GITHUB_OUTPUT
fi
- name: Build web image

View file

@ -21,8 +21,8 @@ services:
environment:
MYSQL_HOST: db
MYSQL_DB: camera # ${{secrets.MYSQL_DATABASE}}
MYSQL_USER: camera_select # ${{secrets.CAMERA_SELECT_USER}}
MYSQL_PASSWORD: camera_selectpassword # ${{secrets.CAMERA_SELECT_USER_PASSWORD}}
CAMERA_SELECT_USER: camera_select # ${{secrets.CAMERA_SELECT_USER}}
CAMERA_SELECT_USER_PASSWORD: camera_selectpassword # ${{secrets.CAMERA_SELECT_USER_PASSWORD}}
DEFAULT_ZOOM: 12
DEFAULT_LAT: 0
DEFAULT_LON: 0

View file

@ -9,8 +9,8 @@
define('MYSQL_HOST', getenv('MYSQL_HOST') ?: '');
define('MYSQL_DB', getenv('MYSQL_DB') ?: '');
define('MYSQL_USER', getenv('MYSQL_USER') ?: '');
define('MYSQL_PASSWORD', getenv('MYSQL_PASSWORD') ?: '');
define('MYSQL_USER', getenv('CAMERA_SELECT_USER') ?: '');
define('MYSQL_PASSWORD', getenv('CAMERA_SELECT_USER_PASSWORD') ?: '');
define('USE_STATISTICS', false);
?>