Skip to content

Commit 9674388

Browse files
committed
Fix npmctl certificate desired state
1 parent 67fa138 commit 9674388

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ jobs:
7171
exit ${missing}
7272
- name: Validate Docker proxy target
7373
run: npm run proxy:target-check
74+
- name: Render proxy desired state
75+
shell: bash
76+
run: |
77+
mkdir -p .tmp/npmctl
78+
sed "s/__NPM_IDENTITY__/${NPM_IDENTITY}/g" desired-state/proxy.yaml > .tmp/npmctl/proxy.yaml
7479
- name: Validate npmctl proxy desired state
7580
run: npmctl validate .tmp/npmctl/proxy.yaml
7681
- name: Build site image

desired-state/proxy.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ certificates:
1212
letsencrypt_email: "__NPM_IDENTITY__"
1313
letsencrypt_agree: true
1414
dns_challenge: false
15-
managed_by: npmctl
16-
owner: docs-tigrbl-com
17-
resource_id: cert.docs-tigrbl-com
1815
meta:
1916
managed_by: npmctl
2017
owner: docs-tigrbl-com
@@ -35,4 +32,4 @@ proxy_hosts:
3532
meta:
3633
managed_by: npmctl
3734
owner: docs-tigrbl-com
38-
resource_id: proxy.docs-tigrbl-com
35+
resource_id: proxy.docs-tigrbl-com

0 commit comments

Comments
 (0)