chore: fix workflow

This commit is contained in:
Jesús Pérez 2023-07-19 12:41:38 +01:00
parent d78b889200
commit b0878a55f0

View File

@ -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."