Commit 54f4165f authored by Louis Gesbert's avatar Louis Gesbert
Browse files

CI: attempt to redefine the command to run (not nginx !)

parent 2065f29d
......@@ -50,6 +50,33 @@ make-image:
RUN apk add libev
" > $DOCKERFILE
# Configuration for the bitnami/nginx helm chart that we deploy
.gen-deploy-yaml: &gen-deploy-yaml
- |
echo "\
image:
registry: ${CI_REGISTRY}
repository: ${CI_REGISTRY_IMAGE#$CI_REGISTRY/}
tag: ${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}
pullPolicy: Always
pullSecrets:
- gitlab-deploy
service:
type: ClusterIP
ingress:
enabled: true
hostname: \"${PUBLIC_HOST}\"
annotations:
kubernetes\\.io/ingress\\.class: nginx
kubernetes\\.io/tls-acme: \"true\"
tls:
- secretName: ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}-tls
hosts:
- \"${PUBLIC_HOST}\"
command:
- /usr/bin/server.exe
" > deploy.yaml
# Deployments are pre-defined in the "dev" environment; they will be stopped
# after 3 days unless they are on the default branch (master).
......@@ -57,7 +84,5 @@ make-image:
# the corresponding DNS record as "CNAME" to "a.ocaml.pro"
deploy-prod:
extends: .deploy-prod
script:
- /usr/bin/server.exe
variables:
PUBLIC_HOST: www.ocamlpro.com
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