Skip to content

Commit e6bf3a1

Browse files
committed
✈ Adding deployment files
1 parent a4d9b6e commit e6bf3a1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/deploy.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
- name: Checkout source code
2424
uses: actions/checkout@v3
2525

26+
- name: Inject secret into manifest
27+
run: awk -i inplace -v secret="${{ secrets.DISCORD_TOKEN }}" '{gsub("DISCORD_TOKEN_SECRET", secret)}1' manifest.yaml
28+
29+
2630
- name: Deploy to the Kubernetes cluster
2731
uses: azure/k8s-deploy@v1
2832
with:

kubernetes/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ spec:
1717
image: ghcr.io/guilamb/interspecies-reviewer:latest
1818
env:
1919
- name: DISCORD_TOKEN
20-
value: ${{ secrets.DISCORD_TOKEN }}
20+
value: DISCORD_TOKEN_SECRET
2121
imagePullSecrets:
2222
- name: github-container-registry

0 commit comments

Comments
 (0)