Skip to content

Commit

Permalink
fix: script doesn't exist while get cm (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrantro authored Jun 15, 2023
1 parent 5ad427d commit a9143df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/operator-manual-deploy-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,14 @@ jobs:
cd $GITHUB_WORKSPACE
aws eks update-kubeconfig --region ${{ steps.remote-state.outputs.region }} --name ${{ steps.remote-state.outputs.cluster_id }}
if [[ -f "$GITHUB_WORKSPACE/api/internals/instances/instances.yml" ]]; then
set +e
kubectl get configmap jcloud-instances -n jcloud
if [[ $? -eq 0 ]]; then
kubectl delete configmap jcloud-instances -n jcloud
fi
kubectl create configmap jcloud-instances --from-file=instances.yml=$GITHUB_WORKSPACE/api/internals/instances/instances.yml -n jcloud
fi
set -e
kubectl apply -f deployment/charts/jcloud-operator/crds/
if [[ $GIT_BRANCH == 'main' ]]; then
bash ./deployment/scripts/deploy.sh -r ${{ steps.remote-state.outputs.region }} -n ${{ steps.remote-state.outputs.cluster_id }} \
Expand Down

0 comments on commit a9143df

Please sign in to comment.