test deployment
Some checks failed
Deploy SSR / deploy (push) Failing after 1m8s

This commit is contained in:
Lee 2024-09-23 23:28:05 +01:00
parent a02d45e81c
commit b33f6cd815
3 changed files with 37 additions and 4 deletions

@ -1,16 +1,27 @@
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: hello-world name: ssr-deploy
steps: steps:
- name: docker - name: Build Docker Image
image: plugins/docker image: plugins/docker
settings: settings:
repo: fascinated/test-image repo: fascinated/ssr
username: username:
from_secret: docker_username from_secret: docker_username
password: password:
from_secret: docker_token from_secret: docker_token
tags: tags:
- latest - latest
- name: Deploy to Kubernetes
image: quay.io/honestbee/drone-kubernetes
settings:
kubernetes_server: https://10.0.69.162:6443
kubernetes_token:
from_secret: kubernetes_token
namespace: public-services
deployment: ssr
repo: fascinated/ssr
tag: latest

@ -34,7 +34,7 @@ RUN adduser --system --uid 1001 nextjs
RUN mkdir .next RUN mkdir .next
RUN chown nextjs:nodejs .next RUN chown nextjs:nodejs .next
COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules # COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder --chown=nextjs:nodejs /app/public ./public COPY --from=builder --chown=nextjs:nodejs /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/package.json ./package.json COPY --from=builder --chown=nextjs:nodejs /app/package.json ./package.json

22
deployment.yaml Normal file

@ -0,0 +1,22 @@
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: ssr-staging-ingress
namespace: public-services
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`ssr-staging.fascinated.cc`)
kind: Rule
middlewares:
- name: default-headers
namespace: traefik
services:
- name: ssr
port: 80
tls:
secretName: fascinated-cc