Skip to content

Commit

Permalink
workflows#3
Browse files Browse the repository at this point in the history
  • Loading branch information
folland87 committed Mar 21, 2024
1 parent 8935e0b commit 0ebbc82
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ jobs:
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
docker push --all-tags $IMAGE_ID
# deploy:
# name: Update staging deployment
# runs-on: ubuntu-latest
# needs: publish-ghcr
# steps:
# - name: Deploy to Cluster
# id: kubectl-deploy
# uses: dataesr/kubectl-deploy@v1.1
# env:
# KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_DOAD }}
# with:
# namespace: ${{ env.DEPLOYMENT_NAMESPACE }}
# restart: ${{ env.DEPLOYMENT }}
deploy:
name: Update staging deployment
runs-on: ubuntu-latest
needs: publish-ghcr
steps:
- name: Deploy to Cluster
id: kubectl-deploy
uses: dataesr/kubectl-deploy@v1.1
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_DOAD }}
with:
namespace: ${{ env.DEPLOYMENT_NAMESPACE }}
restart: ${{ env.DEPLOYMENT }}


# notify:
Expand Down
3 changes: 2 additions & 1 deletion client/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ server {
try_files $uri $uri/ /index.html =404;
}
location /api {
set $api_key $API_KEY;
proxy_pass https://cluster-production.elasticsearch.dataesr.ovh;
proxy_set_header Api-Key ${API_KEY};
proxy_set_header Authorization Basic $api_key;
proxy_set_header Accept application/json;
proxy_set_header Content-Type application/json;
client_max_body_size 10M;
Expand Down

0 comments on commit 0ebbc82

Please sign in to comment.