Unverified Commit 70b19b97 authored by Douglas Duteil's avatar Douglas Duteil
Browse files

ci(k8s): use prod prefix in production

parent 1a5cdb7c
......@@ -24,6 +24,7 @@ if [[ -n "${COMMIT_TAG}" ]]; then
fi
if [[ -n "${PRODUCTION}" ]]; then
export BRANCH_HASH=prod;
export FRONTEND_HOST="work-in-france.${ENVIRONMENT}.social.gouv.fr";
else
export FRONTEND_HOST="${BRANCH_HASH}.work-in-france.${ENVIRONMENT}.social.gouv.fr";
......
......@@ -11,10 +11,10 @@ metadata:
tag: "${COMMIT_TAG}"
spec:
rules:
- host: ${FRONTEND_HOST}
http:
paths:
- path: /
backend:
serviceName: ${K8S_NAMESPACE}-frontend-${BRANCH_HASH}
servicePort: ${PORT}
- host: ${FRONTEND_HOST}
http:
paths:
- path: /
backend:
serviceName: ${K8S_NAMESPACE}-frontend-${BRANCH_HASH}
servicePort: ${PORT}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment