Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): create namespace before indexing #145

Merged
merged 1 commit into from
Jan 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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