From 427740b69e2d142f327c8c8feedcbc5713189e21 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 24 Sep 2024 10:43:05 +0100 Subject: [PATCH] now? --- .gitea/workflows/deploy.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e25d976..36b8f3f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -22,7 +22,15 @@ jobs: password: ${{ secrets.REGISTRY_TOKEN }} registry: git.fascinated.cc - - name: Build and push + - name: Cache Docker Layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + + - name: Build Image uses: docker/build-push-action@v6 with: context: . @@ -30,22 +38,22 @@ jobs: tags: git.fascinated.cc/fascinated/scoresaber-reloaded:latest build-args: | GIT_REV=${{ gitea.sha }} + cache-from: type=local, src=/tmp/.buildx-cache + cache-to: type=local, dest=/tmp/.buildx-cache - name: Install kubectl uses: azure/setup-kubectl@v4 id: install - - name: Setup kubernetes context + - name: Setup Kubernetes Context uses: azure/k8s-set-context@v4 with: kubeconfig: ${{ secrets.KUBECONFIG }} - - uses: Azure/k8s-deploy@v5 + - name: Deploy to Kubernetes + uses: Azure/k8s-deploy@v5 with: action: deploy - strategy: basic - - private-cluster: true manifests: | .gitea/kubernetes/deployment.yaml .gitea/kubernetes/service.yaml