Create the K8S namespace if required

This commit is contained in:
David Négrier 2021-06-11 14:52:59 +02:00
parent a6effe0a29
commit 2260f772a7

View File

@ -157,6 +157,14 @@ jobs:
- name: Download certificate
run: mkdir secrets && scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i secret.key ubuntu@cert.workadventu.re:./config/live/workadventu.re/* secrets/
- name: Create namespace
uses: steebchen/kubectl@v1.0.0
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_FILE_BASE64 }}
with:
args: create namespace workadventure-${{ github.event_name == 'pull_request' && env.GITHUB_HEAD_REF_SLUG || env.GITHUB_REF_SLUG }}
continue-on-error: true
- name: Install certificates in namespace
uses: steebchen/kubectl@v1.0.0
env: