Skip to content

Commit c34c523

Browse files
committed
Add case to handle prod unit domain correctly
1 parent 69843fb commit c34c523

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/docs-build-push.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ env:
5757
DOMAIN_DEV: "docs-dev.nginx.com"
5858
DOMAIN_STAGING: "docs-staging.nginx.com"
5959
DOMAIN_PROD: "docs.nginx.com"
60+
DOMAIN_UNIT: "unit.nginx.org"
6061

6162
jobs:
6263
checks:
@@ -132,17 +133,20 @@ jobs:
132133
- name: Set deployment domain
133134
id: deployment
134135
run: |
135-
case ${DEPLOYMENT_ENV} in
136-
dev)
136+
case ${DEPLOYMENT_ENV}/${{github.repository}} in
137+
dev/*)
137138
DOMAIN="${DOMAIN_DEV}"
138139
;;
139-
staging)
140+
staging/*)
140141
DOMAIN="${DOMAIN_STAGING}"
141142
;;
142-
prod)
143+
prod/nginx/unit-docs)
144+
DOMAIN="${DOMAIN_UNIT}"
145+
;;
146+
prod/*)
143147
DOMAIN="${DOMAIN_PROD}"
144148
;;
145-
preview)
149+
preview/*)
146150
DOMAIN="${DOMAIN_PREVIEW}"
147151
;;
148152
esac

0 commit comments

Comments
 (0)