Skip to content

Commit

Permalink
ci/cd - various fixes for k8s tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0ppy-d1sk committed Aug 31, 2023
1 parent b5638aa commit cf55ade
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/staging-delete-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit cf55ade

Please sign in to comment.