Skip to content

Commit dbe3e14

Browse files
committed
fix: remove customerId from build cmd
1 parent 10438d2 commit dbe3e14

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/node.js.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
cache: 'npm'
3232
- run: npm ci
3333
- run: npm run build-prod
34+
env:
35+
CUSTOMER_ID: '22222222-2222-2222-2222-222222222222'
3436
- name: Cypress run
3537
uses: cypress-io/github-action@v5
3638
with:

docker-replace-parameters.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ LOCALE=$(echo "$LOCALE" || echo "de-DE")
66
ADDRESSING=$(echo "$ADDRESSING" || echo "du")
77
CUSTOMER_ID=$(echo "$CUSTOMER_ID" || echo "00000000-0000-0000-0000-000000000000")
88

9-
echo "/docker-entrypoint.d/60-docker-replace-parameters.sh: Replacing Env-Vars with parameters."
9+
echo "/docker-entrypoint.d/docker-replace-parameters.sh: Replacing Env-Vars with parameters."
1010

1111
find /usr/share/nginx/html -type f -exec sed -i "s/@TITLE@/$TITLE/g" {} \;
1212
find /usr/share/nginx/html -type f -exec sed -i "s/@LOCALE@/$LOCALE/g" {} \;
1313
find /usr/share/nginx/html -type f -exec sed -i "s/@ADDRESSING@/$ADDRESSING/g" {} \;
1414
find /usr/share/nginx/html -type f -exec sed -i "s~@API_URL@~$API_URL~g" {} \;
1515
find /usr/share/nginx/html -type f -exec sed -i "s~@CUSTOMER_ID@~$CUSTOMER_ID~g" {} \;
1616

17-
echo "/docker-entrypoint.d/60-docker-replace-parameters.sh: Successfully initailized. Starting up nginx."
17+
echo "/docker-entrypoint.d/docker-replace-parameters.sh: Successfully initailized. Starting up nginx."

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"start-docker": "docker image build --build-arg APP_FILES=dist -t terminfinder-docker:0.0.0 .",
1111
"test": "npm run prebuild && ng serve --configuration production",
1212
"jest": "ng test",
13-
"build-prod": "export PRODUCTION=true CUSTOMER_ID=22222222-2222-2222-2222-222222222222 && npm run prebuild && ng build --configuration production ",
13+
"build-prod": "export PRODUCTION=true && npm run prebuild && ng build --configuration production ",
1414
"build-test": "export PRODUCTION=true && npm run prebuild && ng build --configuration test",
1515
"build-docker-prod": "export DOCKER=true PRODUCTION=true && npm run prebuild && npm run build-prod",
1616
"build-docker-test": "export DOCKER=true PRODUCTION=false && npm run prebuild && npm run build-test",

0 commit comments

Comments
 (0)