mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Remove the hardcoded (base64-obfuscated) ScreenScraper developer credentials from the source tree and read them from the SCREENSCRAPER_DEV_ID / SCREENSCRAPER_DEV_PASSWORD environment variables instead. The official images bake the values in at build time from CI secrets via Docker build args; local builds and source runs read them from the environment. env.template documents the vars (commented out) so an empty value never overrides the image's built-in credentials. Generated-By: PostHog Code Task-Id: 05a9b58b-4c64-4f75-af3e-d27cc4c5702f
9 lines
392 B
Bash
Executable File
9 lines
392 B
Bash
Executable File
#!/bin/bash
|
|
|
|
branch_name="$(git symbolic-ref HEAD 2>/dev/null)"
|
|
branch_name=${branch_name##refs/heads/}
|
|
branch_name=${branch_name//\//-} # Replace slashes with dashes
|
|
docker build -t "rommapp/romm-testing:local-${branch_name}" . --file ./docker/Dockerfile \
|
|
--build-arg "SCREENSCRAPER_DEV_ID=${SCREENSCRAPER_DEV_ID}" \
|
|
--build-arg "SCREENSCRAPER_DEV_PASSWORD=${SCREENSCRAPER_DEV_PASSWORD}"
|