let's try this again
Some checks failed
Deploy Backend / deploy (push) Failing after 25s
Deploy Frontend / deploy (push) Failing after 10s

This commit is contained in:
Lee
2024-10-04 20:35:44 +01:00
parent 00462d9ed6
commit 98c52e5525
418 changed files with 1692 additions and 751 deletions

View File

@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: scoresaber-reloaded-container
image: git.fascinated.cc/fascinated/scoresaber-reloaded:latest
image: git.fascinated.cc/fascinated/scoresaber-reloaded-frontend:latest
imagePullPolicy: Always
ports:
- containerPort: 3000

View File

@ -0,0 +1,58 @@
name: "Deploy Backend"
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
registry: git.fascinated.cc
- name: Build Image
uses: docker/build-push-action@v6
with:
context: .
file: ./backend/Dockerfile
push: true
tags: |
git.fascinated.cc/fascinated/scoresaber-reloaded-backend:${{ github.sha }}
git.fascinated.cc/fascinated/scoresaber-reloaded-backend:latest
build-args: |
GIT_REV=${{ gitea.sha }}
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
- name: Install kubectl
uses: azure/setup-kubectl@v4
id: install
- name: Setup Kubernetes Context
uses: azure/k8s-set-context@v4
with:
kubeconfig: ${{ secrets.KUBECONFIG }}
# - name: Deploy to Kubernetes
# uses: Azure/k8s-deploy@v5
# with:
# action: deploy
# namespace: public-services
# manifests: |
# .gitea/kubernetes/sealed-secrets.yaml
# .gitea/kubernetes/deployment.yaml
# .gitea/kubernetes/service.yaml
# .gitea/kubernetes/ingress.yaml
# images: |
# git.fascinated.cc/fascinated/scoresaber-reloaded-backend:${{ github.sha }}

View File

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