start fixing website

This commit is contained in:
Lee 2024-10-04 21:09:04 +01:00
parent 287912bd81
commit 8938bd2924
5 changed files with 18 additions and 14 deletions

View File

@ -1,21 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: scoresaber-reloaded
name: scoresaber-reloaded-website
namespace: public-services
spec:
replicas: 1
selector:
matchLabels:
app: scoresaber-reloaded
app: scoresaber-reloaded-website
template:
metadata:
labels:
app: scoresaber-reloaded
app: scoresaber-reloaded-website
spec:
containers:
- name: scoresaber-reloaded-container
image: git.fascinated.cc/fascinated/scoresaber-reloaded-frontend:latest
- name: scoresaber-reloaded-website-container
image: git.fascinated.cc/fascinated/scoresaber-reloaded-website:latest
imagePullPolicy: Always
ports:
- containerPort: 3000

View File

@ -2,7 +2,7 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: scoresaber-reloaded-ingress
name: scoresaber-reloaded-website-ingress
namespace: public-services
annotations:
kubernetes.io/ingress.class: traefik-external
@ -18,7 +18,7 @@ spec:
- name: compress
namespace: traefik
services:
- name: scoresaber-reloaded-service
- name: scoresaber-reloaded-website-service
port: 3000
tls:
secretName: fascinated-cc

View File

@ -2,7 +2,7 @@
apiVersion: v1
kind: Service
metadata:
name: scoresaber-reloaded-service
name: scoresaber-reloaded-website-service
namespace: public-services
spec:
type: ClusterIP
@ -10,4 +10,4 @@ spec:
- port: 3000
targetPort: 3000
selector:
app: scoresaber-reloaded
app: scoresaber-reloaded-website

View File

@ -4,6 +4,8 @@ on:
push:
branches:
- master
paths:
- backend/**
jobs:
deploy:

View File

@ -1,9 +1,11 @@
name: "Deploy Frontend"
name: "Deploy Website"
on:
push:
branches:
- master
paths:
- website/**
jobs:
deploy:
@ -26,11 +28,11 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
file: ./frontend/Dockerfile
file: ./website/Dockerfile
push: true
tags: |
git.fascinated.cc/fascinated/scoresaber-reloaded-frontend:${{ github.sha }}
git.fascinated.cc/fascinated/scoresaber-reloaded-frontend:latest
git.fascinated.cc/fascinated/scoresaber-reloaded-website:${{ github.sha }}
git.fascinated.cc/fascinated/scoresaber-reloaded-website:latest
build-args: |
GIT_REV=${{ gitea.sha }}
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
@ -55,4 +57,4 @@ jobs:
.gitea/kubernetes/service.yaml
.gitea/kubernetes/ingress.yaml
images: |
git.fascinated.cc/fascinated/scoresaber-reloaded-frontend:${{ github.sha }}
git.fascinated.cc/fascinated/scoresaber-reloaded-website:${{ github.sha }}