Skip to content

Commit

Permalink
fix(ci): create namespace before indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Jan 25, 2022
1 parent 28bc98b commit e981b7e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/indexing-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ jobs:
name: indexing.yml
path: indexing.yml

- name: Generate namespace
shell: bash
run: yarn --cwd .k8s --silent generate --env dev _namespace > namespace.yml
env:
RANCHER_PROJECT_ID: ${{ secrets.RANCHER_PROJECT_ID }}
SOCIALGOUV_BASE_DOMAIN: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}

- name: Archive namespace
uses: actions/upload-artifact@v2
with:
name: namespace.yml
path: namespace.yml

- name: Get namespace name
uses: mikefarah/yq@master
id: namespace
Expand All @@ -50,6 +63,11 @@ jobs:
touch ~/.kube/config
echo ${{ secrets.KUBECONFIG }} | base64 -d > ~/.kube/config
- name: Create k8s namespace
shell: bash
run: |
kubectl create -f namespace.yml || true
- name: Launch indexing Job
shell: bash
run: |
Expand Down

0 comments on commit e981b7e

Please sign in to comment.