This commit is contained in:
@@ -43,3 +43,9 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
${{ vars.REGISTRY_URL }}/${{ steps.meta.outputs.REPO_NAME }}:${{ github.sha }}
|
${{ vars.REGISTRY_URL }}/${{ steps.meta.outputs.REPO_NAME }}:${{ github.sha }}
|
||||||
${{ vars.REGISTRY_URL }}/${{ steps.meta.outputs.REPO_NAME }}:latest
|
${{ 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:
|
metadata:
|
||||||
name: ayaume
|
name: ayaume
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: blog-secrets
|
|
||||||
namespace: ayaume
|
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
webhook-secret: c2VjcmV0
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@@ -34,7 +25,7 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
env:
|
env:
|
||||||
- name: WEBHOOK_SECRET
|
- name: AUTH_TOKEN
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: blog-secrets
|
name: blog-secrets
|
||||||
|
|||||||
Reference in New Issue
Block a user