Commit 717fb1ea authored by Louis Gesbert's avatar Louis Gesbert
Browse files

Let's see if this dirtier, but simpler hack works

parent 54f4165f
......@@ -45,38 +45,10 @@ make-image:
# Here we inherit from nginx and just add the contents of our web-app
- |
echo "\
FROM alpine:3.11
ADD server.exe /usr/bin
RUN apk add libev
FROM bitnami/nginx:latest
ADD server.exe /opt/bitnami/nginx/sbin/nginx
" > $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).
......
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