Skip to content

Commit a4adbc4

Browse files
committed
fix echo for npm token
1 parent 175d5a5 commit a4adbc4

4 files changed

Lines changed: 27 additions & 3 deletions

File tree

ansible/group_vars/alpha-api-base.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ restart_policy: always
99
# for sendGrid
1010
sendgrid_key: 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
1111

12+
dockerfile_enviroment: [
13+
"NPM_TOKEN {{ npm_token }}",
14+
"BIG_POPPA_HOST {{ big_poppa_host_address }}:{{ big_poppa_port }}",
15+
"RABBITMQ_HOSTNAME {{ rabbit_host_address }}",
16+
"RABBITMQ_PASSWORD {{ rabbit_password }}",
17+
"RABBITMQ_PORT {{ rabbit_port }}"
18+
]
19+
dockerfile_pre_install_commands: [
20+
'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc'
21+
]
22+
1223
# shared ENV's between api services
1324
api_base_container_envs: >-
1425
-e AWS_ACCESS_KEY_ID={{ api_aws_access_key_id }}

ansible/group_vars/alpha-big-poppa-http.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dockerfile_enviroment: [
1212
]
1313

1414
dockerfile_pre_install_commands: [
15-
"echo '//registry.npmjs.org/:_authToken=\${NPM_TOKEN}' > .npmrc"
15+
"echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc"
1616
]
1717

1818
# for container settings

ansible/group_vars/alpha-big-poppa-worker.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ npm_version: 2
99
dockerfile_enviroment: [
1010
"NPM_TOKEN {{ npm_token }}"
1111
]
12+
13+
dockerfile_enviroment: [
14+
"NPM_TOKEN {{ npm_token }}"
15+
]
16+
17+
dockerfile_pre_install_commands: [
18+
"echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc"
19+
]
20+
1221
# for container settings
1322
container_envs: >
1423
-e DATADOG_HOST={{ datadog_host_address }}

ansible/group_vars/alpha-eru.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ npm_version: 3.8
1010
has_shrinkwrap: true
1111

1212
dockerfile_enviroment: [
13-
"NPM_TOKEN {{ npm_token }}"
13+
"NPM_TOKEN {{ npm_token }}",
14+
"BIG_POPPA_HOST {{ big_poppa_host_address }}:{{ big_poppa_port }}",
15+
"RABBITMQ_HOSTNAME {{ rabbit_host_address }}",
16+
"RABBITMQ_PASSWORD {{ rabbit_password }}",
17+
"RABBITMQ_PORT {{ rabbit_port }}"
1418
]
1519
dockerfile_pre_install_commands: [
16-
'echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc'
20+
'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc'
1721
]
1822

1923
dockerfile_post_install_commands:

0 commit comments

Comments
 (0)