From b028aaa6b2d63c5d5a9e15fbfdf60ef4425a272c Mon Sep 17 00:00:00 2001 From: kuwoyuki Date: Thu, 6 Feb 2025 23:38:44 +0600 Subject: [PATCH] chore: deploy --- .gitea/workflows/ci.yaml | 6 ++++++ manifests/ayaume.yaml | 11 +---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 80c653a..8aef23e 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -43,3 +43,9 @@ jobs: tags: | ${{ vars.REGISTRY_URL }}/${{ steps.meta.outputs.REPO_NAME }}:${{ github.sha }} ${{ vars.REGISTRY_URL }}/${{ steps.meta.outputs.REPO_NAME }}:latest + + - name: Deploy to cluster + uses: steebchen/kubectl@v2 + with: + config: ${{ secrets.KUBE_CONFIG_DATA }} + command: apply -f manifests/ \ No newline at end of file diff --git a/manifests/ayaume.yaml b/manifests/ayaume.yaml index 809918e..32636ca 100644 --- a/manifests/ayaume.yaml +++ b/manifests/ayaume.yaml @@ -4,15 +4,6 @@ kind: Namespace metadata: name: ayaume --- -apiVersion: v1 -kind: Secret -metadata: - name: blog-secrets - namespace: ayaume -type: Opaque -data: - webhook-secret: c2VjcmV0 ---- apiVersion: apps/v1 kind: Deployment metadata: @@ -34,7 +25,7 @@ spec: ports: - containerPort: 3000 env: - - name: WEBHOOK_SECRET + - name: AUTH_TOKEN valueFrom: secretKeyRef: name: blog-secrets