diff --git a/.gitea/kubernetes/deployment.yaml b/.gitea/kubernetes/deployment.yaml index 21685bb..7a4e15e 100644 --- a/.gitea/kubernetes/deployment.yaml +++ b/.gitea/kubernetes/deployment.yaml @@ -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 diff --git a/.gitea/kubernetes/ingress.yaml b/.gitea/kubernetes/ingress.yaml index 81a6c67..3e99230 100644 --- a/.gitea/kubernetes/ingress.yaml +++ b/.gitea/kubernetes/ingress.yaml @@ -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 diff --git a/.gitea/kubernetes/service.yaml b/.gitea/kubernetes/service.yaml index a73a898..acccac0 100644 --- a/.gitea/kubernetes/service.yaml +++ b/.gitea/kubernetes/service.yaml @@ -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 diff --git a/.gitea/workflows/deploy-backend.yml b/.gitea/workflows/deploy-backend.yml index 5eaa660..8dd6e7c 100644 --- a/.gitea/workflows/deploy-backend.yml +++ b/.gitea/workflows/deploy-backend.yml @@ -4,6 +4,8 @@ on: push: branches: - master + paths: + - backend/** jobs: deploy: diff --git a/.gitea/workflows/deploy-frontend.yml b/.gitea/workflows/deploy-website.yml similarity index 79% rename from .gitea/workflows/deploy-frontend.yml rename to .gitea/workflows/deploy-website.yml index ba44e4e..ace3297 100644 --- a/.gitea/workflows/deploy-frontend.yml +++ b/.gitea/workflows/deploy-website.yml @@ -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 }}