mirror of
https://github.com/rommapp/romm.git
synced 2026-12-05 05:07:31 +01:00
feat: inject ScreenScraper dev credentials at build time
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
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -115,6 +115,9 @@ jobs:
|
||||
tags: ${{ steps.meta-slim.outputs.tags }}
|
||||
labels: ${{ steps.meta-slim.outputs.labels }}
|
||||
target: slim-image
|
||||
build-args: |
|
||||
SCREENSCRAPER_DEV_ID=${{ secrets.SCREENSCRAPER_DEV_ID }}
|
||||
SCREENSCRAPER_DEV_PASSWORD=${{ secrets.SCREENSCRAPER_DEV_PASSWORD }}
|
||||
|
||||
- name: Build full image
|
||||
id: build-full
|
||||
@@ -127,6 +130,9 @@ jobs:
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
target: full-image
|
||||
build-args: |
|
||||
SCREENSCRAPER_DEV_ID=${{ secrets.SCREENSCRAPER_DEV_ID }}
|
||||
SCREENSCRAPER_DEV_PASSWORD=${{ secrets.SCREENSCRAPER_DEV_PASSWORD }}
|
||||
|
||||
trigger-docs-and-web:
|
||||
permissions:
|
||||
|
||||
3
.github/workflows/test-build.yml
vendored
3
.github/workflows/test-build.yml
vendored
@@ -107,6 +107,9 @@ jobs:
|
||||
platforms: linux/arm64,linux/amd64
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
target: full-image
|
||||
build-args: |
|
||||
SCREENSCRAPER_DEV_ID=${{ secrets.SCREENSCRAPER_DEV_ID }}
|
||||
SCREENSCRAPER_DEV_PASSWORD=${{ secrets.SCREENSCRAPER_DEV_PASSWORD }}
|
||||
|
||||
# PR builds always push to GHCR only, so the image link is hardcoded to GHCR.
|
||||
- name: Comment PR with GHCR image link
|
||||
|
||||
Reference in New Issue
Block a user