chore: fix workflow
This commit is contained in:
parent
d78b889200
commit
b0878a55f0
@ -33,7 +33,6 @@ jobs:
|
||||
curl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/$OS/$ARCH/kubectl" -o /usr/local/bin/kubectl
|
||||
[ -r "/usr/local/bin/kubectl" ] && chmod +x /usr/local/bin/kubectl
|
||||
echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > $KUBECONFIG
|
||||
|
||||
- name: Run K8s JOB
|
||||
run: |
|
||||
echo "${{ vars.K8_JOB }}" | sed "s/{{KS_NAMESPACE}}/${{ vars.KS_NAMESPACE }}/g" | sed "s/{{KS_JOB_NAME}}/${{ vars.KS_JOB_NAME }}/g" > /tmp/job.yaml
|
||||
@ -41,7 +40,7 @@ jobs:
|
||||
kubectl delete -f /tmp/job.yaml
|
||||
fi
|
||||
echo "${{ vars.K8_CONFIGMAP_JOB }}" | sed "s/{{KS_NAMESPACE}}/${{ vars.KS_NAMESPACE }}/g" | sed "s/{{KS_JOB_NAME}}/${{ vars.KS_JOB_NAME }}/g"> /tmp/config_job.yaml
|
||||
echo "🍏 Job ${{ vars.KS_JOB_NAME }} in ${{ vars.KS_NAMESPACE }} launched."
|
||||
# kubectl apply -f /tmp/config_job.yaml
|
||||
# kubectl apply -f /tmp/job.yaml
|
||||
# kubectl get jobs -n ${{ vars.KS_NAMESPACE }}
|
||||
echo "🍏 Job ${{ vars.KS_JOB_NAME }} in ${{ vars.KS_NAMESPACE }} launched."
|
||||
|
Loading…
Reference in New Issue
Block a user