fixin
This commit is contained in:
parent
e718ec630a
commit
ad5d76eb13
@ -29,12 +29,13 @@ jobs:
|
|||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: content
|
name: content
|
||||||
|
path: ./content
|
||||||
- name: Install kubectl
|
- name: Install kubectl
|
||||||
run: curl -LO https://dl.k8s.io/release/v1.33.0/bin/linux/arm64/kubectl && chmod +x kubectl && mv kubectl /usr/bin
|
run: curl -LO https://dl.k8s.io/release/v1.33.0/bin/linux/arm64/kubectl && chmod +x kubectl && mv kubectl /usr/bin
|
||||||
- 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: export TARGET_POD=$(kubectl get pods -n my-stuff -l app=digital-garden -o json | jq -r .items[0].metadata.name)
|
||||||
- run: ls -al && echo $TARGET_POD
|
- run: ls -al && echo $TARGET_POD && kubectl get pods -n my-stuff -l app=digital-garden -o json
|
||||||
- name: Copy contents to PVC
|
- name: Copy contents to PVC
|
||||||
run: kubectl cp quartz-clone/public my-stuff/$TARGET_POD:/www/data/
|
run: kubectl cp content my-stuff/$TARGET_POD:/www/data/
|
||||||
|
Loading…
Reference in New Issue
Block a user