This commit is contained in:
parent
a02d45e81c
commit
b33f6cd815
17
.drone.yml
17
.drone.yml
@ -1,16 +1,27 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: hello-world
|
||||
name: ssr-deploy
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
- name: Build Docker Image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: fascinated/test-image
|
||||
repo: fascinated/ssr
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_token
|
||||
tags:
|
||||
- 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 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/public ./public
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/package.json ./package.json
|
||||
|
22
deployment.yaml
Normal file
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
|
Reference in New Issue
Block a user