This commit is contained in:
@@ -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/
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user