We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69843fb commit c34c523Copy full SHA for c34c523
.github/workflows/docs-build-push.yml
@@ -57,6 +57,7 @@ env:
57
DOMAIN_DEV: "docs-dev.nginx.com"
58
DOMAIN_STAGING: "docs-staging.nginx.com"
59
DOMAIN_PROD: "docs.nginx.com"
60
+ DOMAIN_UNIT: "unit.nginx.org"
61
62
jobs:
63
checks:
@@ -132,17 +133,20 @@ jobs:
132
133
- name: Set deployment domain
134
id: deployment
135
run: |
- case ${DEPLOYMENT_ENV} in
136
- dev)
+ case ${DEPLOYMENT_ENV}/${{github.repository}} in
137
+ dev/*)
138
DOMAIN="${DOMAIN_DEV}"
139
;;
- staging)
140
+ staging/*)
141
DOMAIN="${DOMAIN_STAGING}"
142
- prod)
143
+ prod/nginx/unit-docs)
144
+ DOMAIN="${DOMAIN_UNIT}"
145
+ ;;
146
+ prod/*)
147
DOMAIN="${DOMAIN_PROD}"
148
- preview)
149
+ preview/*)
150
DOMAIN="${DOMAIN_PREVIEW}"
151
152
esac
0 commit comments