ci/cd - various fixes for k8s tests

This commit is contained in:
bunkerity 2023-08-31 12:39:23 +02:00
parent b5638aae19
commit cf55ade15d
2 changed files with 1 additions and 8 deletions

View File

@ -34,13 +34,6 @@ jobs:
tar xf /tmp/terraform.tar -C / && mkdir ~/.ssh && touch ~/.ssh/id_rsa.pub
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
- if: inputs.TYPE == 'k8s'
run: |
cd /tmp/${{ inputs.TYPE }}
terraform state rm kubernetes_secret.reg
terraform state rm kubectl_manifest.lb
terraform state rm local_sensitive_file.lb_yml
terraform state rm local_sensitive_file.kubeconfig
- uses: azure/setup-kubectl@v3
if: inputs.TYPE == 'k8s'
# Remove infra

View File

@ -54,7 +54,7 @@ jobs:
rm -f /tmp/.secret_key
tar xf /tmp/terraform.tar -C /
mkdir /tmp/reg
cp tests/terraform/k8s.tf /tmp/reg
cp tests/terraform/k8s-reg.tf /tmp/reg
cp tests/terraform/providers.tf /tmp/reg
cd /tmp/reg
export TF_VAR_k8s_reg_user=${REG_USER}