fixin
This commit is contained in:
parent
d8addbf7dc
commit
7d0681c3c6
@ -35,7 +35,6 @@ jobs:
|
|||||||
- name: Set up cluster access
|
- name: Set up cluster access
|
||||||
run: mkdir ~/.kube && echo "${{ secrets.K8S_CONF }}" > ~/.kube/config
|
run: mkdir ~/.kube && echo "${{ secrets.K8S_CONF }}" > ~/.kube/config
|
||||||
- name: Get target pods's name
|
- name: Get target pods's name
|
||||||
run: export TARGET_POD=$(kubectl get pods -n my-stuff -l app=digital-garden -o json | jq -r .items[0].metadata.name)
|
run: echo "TARGET_POD=$(kubectl get pods -n my-stuff -l app=digital-garden -o json | jq -r .items[0].metadata.name)" >> "$GITHBU_ENV"
|
||||||
- run: ls -al && echo $TARGET_POD && kubectl get pods -n my-stuff -l app=digital-garden -o json | jq -r .items[0].metadata.name
|
|
||||||
- name: Copy contents to PVC
|
- name: Copy contents to PVC
|
||||||
run: kubectl cp content my-stuff/$TARGET_POD:/www/data/
|
run: kubectl cp content my-stuff/$TARGET_POD:/www/data/
|
||||||
|
Loading…
Reference in New Issue
Block a user