no envsubst

This commit is contained in:
Nikola Kubiczek 2023-09-25 20:55:45 +02:00
parent 15453c99e5
commit 3b4c248a17
Signed by: yaemiku
GPG Key ID: ADC039636B3E4AAB
2 changed files with 12 additions and 12 deletions

View File

@ -28,9 +28,9 @@ deploy:
when: always
extends: [.kube-context]
image:
name: registry.yaemiku.dev/yaemiku/kubectl
name: bitnami/kubectl:latest
entrypoint: [""]
script:
- ls
- cat $CI_PROJECT_PATH/deployment.yaml | envsubst | kubectl apply -f -
- kubectl apply -f $CI_PROJECT_PATH/deployment.yaml
- kubectl get pods

View File

@ -1,20 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: $CI_PROJECT_NAME
name: hamburger
spec:
selector:
matchLabels:
app: $CI_PROJECT_NAME
app: hamburger
replicas: 1
template:
metadata:
labels:
app: $CI_PROJECT_NAME
app: hamburger
spec:
containers:
- name: $CI_PROJECT_NAME
image: "$REGISTRY/$REGISTRY_USERNAME/$CI_PROJECT_NAME"
- name: hamburger
image: registry.yaemiku.dev/yaemiku/hamburger
ports:
- name: app-port
containerPort: 3000
@ -32,20 +32,20 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: $CI_PROJECT_NAME
name: hamburger
spec:
ports:
- name: app-svc-port
port: 80
targetPort: app-port
selector:
app: $CI_PROJECT_NAME
app: hamburger
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: $CI_PROJECT_NAME
name: hamburger
spec:
entryPoints:
- websecure
@ -54,10 +54,10 @@ spec:
match: Host(`yaemiku.dev`) || Host(`www.yaemiku.dev`)
services:
- kind: Service
name: $CI_PROJECT_NAME
name: hamburger
port: app-svc-port
tls:
secretName: $CI_PROJECT_NAME-tls
secretName: hamburger-tls
certResolver: letsencrypt-prod
domains:
- main: yaemiku.dev