-
Notifications
You must be signed in to change notification settings - Fork 0
24 lines (22 loc) · 902 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: test
on: [push]
jobs:
test-examples:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install KinD
# pinning to the sha aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 from https://github.com/engineerd/setup-kind/releases/tag/v0.5.0
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0
with:
version: "v0.15.0"
skipClusterCreation: "true"
- name: Test examples
env:
LASTPASS_USERNAME: ${{ secrets.LASTPASS_USERNAME }}
LASTPASS_MASTERPASSWORD: ${{ secrets.LASTPASS_MASTERPASSWORD }}
run: |
./examples/demo-kind.sh
kubectl exec mypod -- cat /mnt/secrets-store/netflix | grep --silent "^mypassword$"
kubectl get secret mysecret -o 'go-template={{index .data "mykey"}}' | base64 -d | grep --silent "^mypassword$"