fixin
This commit is contained in:
parent
9a8ebb67aa
commit
b1edeeca3c
@ -36,5 +36,7 @@ jobs:
|
|||||||
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: echo "TARGET_POD=$(kubectl get pods -n my-stuff -l app=digital-garden -o json | jq -r .items[0].metadata.name)" >> "$GITHUB_ENV"
|
run: echo "TARGET_POD=$(kubectl get pods -n my-stuff -l app=digital-garden -o json | jq -r .items[0].metadata.name)" >> "$GITHUB_ENV"
|
||||||
- name: Copy contents to PVC
|
- name: Copy contents to pod temp folder (due to permission issues)
|
||||||
run: kubectl cp content my-stuff/$TARGET_POD:/www/data/
|
run: kubectl cp content my-stuff/$TARGET_POD:/tmp
|
||||||
|
- name: Change permissions and move files to WWW directory
|
||||||
|
run: kubectl exec -it my-stuff/$TARGET_POD -- chown -R root:root /tmp/content && mv /tmp/content /www/data
|
||||||
|
Loading…
Reference in New Issue
Block a user